On Thursday, June 12, 2014 2:16:30 PM UTC+8, Andrew Simper wrote:
>
> It seems that the local keyword is a bit of a language kludge to me, since 
> it is implied in most cases, apart from stating the new scope in the form 
> of a for loop etc. It would seem more natural and consistent to me to add 
> the local keyword in front of all variables you want to be local in scope, 
> and everyting else is global. This line of reasoning I'm sure has already 
> been argued to death, and obviously having an implicit local was decided to 
> be best.
>

Having the local keyword like it is makes most sense to me, but I suppose 
it isn't a big deal to me that if you don't explicitly specify local you 
could be referring to something outside the current scope, which is the 
case with for loops. 

Reply via email to