top | item 38788582

(no title)

tvb12 | 2 years 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.

discuss

order

thefaux|2 years ago

Yes. My solution though is to just pretend that naked assignment isn't supported and don't use global variables.