[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: callstack recursive environment
- From: Coda Highland <chighland@...>
- Date: Wed, 28 Mar 2012 14:31:13 -0500
> Actually, in my personal opinion, global variables are so dangerous
> that it makes sense to ask the programmer to explicitly declare them as
> a global. As a matter of fact, I feel much more comfortable with
> languages where local is the default, and you have to explicitly
> declare all globals. I sometimes forget to put the word "local" (or
> "my" in Perl), setting myself up for a later subtle bug.
The problem with default-local is that it makes it difficult
(potentially impossible) to control the scope of a variable. How
"local" should local be?
But this is a flamewar for another place.
/s/ Adam