[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Oh no, it's the "global" issue again
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 13 Apr 2004 18:06:09 -0700
I've been perusing the mailing list archives trying to determine what
happened to the proposed "global" keyword for Lua 5. This comes up because
some of the programmers on my project are muttering things about liking
Objective-C and C# better because it gives them more error checking.
Now, true one can seal the environment against inadvertent global creation
and can shake things out by executing the code, but catching errors at
compile time does have it's share of benefits as well if the coding burden
isn't too high.
I also understand that in an interactive environment, the default global
behavior is ideal.
What I'd like to see is an option to require that all variables be
explicitly declared as either global or local. I think that's what "global"
did if I understand the proposals. So, what happened to it?
(I am going to go look at Rici's coloring parser, but that's a backstop
measure.)
Mark