[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: local variables and scope
- From: Diego Nehab <diego@...>
- Date: Wed, 24 Aug 2005 18:21:35 -0400 (EDT)
Hi,
What were the design motivations leading to all variables being global, and
limiting them to the block scope only when 'local' is used ?
Why not the reverse (all variables local to block scope expect where noted
'global') ?
You can read about the great "Globals-Locals by default" war anywhere
between these two threads:
4 Aug 2005
http://lua-users.org/lists/lua-l/2005-08/msg00132.html
14 Nov 1997
http://lua-users.org/lists/lua-l/1997-11/msg00018.html
Hundreds of good programmers have been killed in the conflict.
In the end, the "Globals" tribe won. Let's not start another
one...
Regards,
Diego.