[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: local by default?
- From: Russ Webb <Russell.Webb@...>
- Date: Mon, 29 Apr 2002 12:28:53 -0700
>> Also you could initialize a local
>> value with nil before entering the loop like this:
> Then I may as well declare "local foo" and have done!
Personally, I like declaring all locals since it prevents typos from
creating side-effects, and I'd be happy to declare globals only when I want
write access to them.