Re:Scriptable Operating Systems with Lua [pdf]
by ufo on Tuesday September 30, 2014 @07:44PM
(#8392075)
Localized bugs are still bugs. Better always require a variable declaration and have no defaults.
Usually languages use local-by-default to avoid the need for variable declarations in the first place (in misguided manner, IMO) instead of doing so to avoid globals.
Usually languages use local-by-default to avoid the need for variable declarations in the first place (in misguided manner, IMO) instead of doing so to avoid globals.
This page might be interesting, btw: http://lua-users.org/wiki/LocalByDefault