Replies: 1 comment 1 reply
-
https://lua-users.org/wiki/LocalByDefault There is a LOT of reasons why it is like this |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure if this can be implemented by a plugin for VSCode, as I'm not sure what their capabilities are, but I want to talk about what's annoying me and what would fix it in theory
The "local" keyword problem
I understand that Lua is unlikely to ever get rid of it, but I think the fact that it exists is a fundamental mistake.
In programming, you need to define something local a million times and global 1 time per million. But in reality we have the keyword
local
instead ofglobal
. This leads to clogging the code with a word that might not exist in general.Maybe a plugin for vscode could at least just hide the word `local' from the code after it is written, marking the function or variable with some icon instead of that word. That would remove a lot of visual garbage.
Beta Was this translation helpful? Give feedback.
All reactions