Warning when using a global variable other than in an assignment to a local variable. #2372
mikuhl-dev
started this conversation in
Ideas
Replies: 1 comment
-
This isn't currently available. I'd suggest opening a feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a common micro optimization, to assign a global variable to a local variable if you are using it multiple times to avoid global lookups, which are slower than local lookups. Would be an interesting warning to be able to enable.
Beta Was this translation helpful? Give feedback.
All reactions