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