3 ms·
Even though it would make the language a little more verbose, I would love if Lua had a 'global' keyword and declaring global/local was required. With that one
by tvb12 3y ago
Even though it would make the language a little more verbose, I would love if Lua had a 'global' keyword and declaring global/local was required. With that one change, I think Lua would have the best implementation of scope out of any language I've used.
- thefaux 3y agoYes. My solution though is to just pretend that naked assignment isn't supported and don't use global variables.