in reply to A question of style - declaring lexicals
By declaring variables as close to first use as possible, you minimize a lot of risks. And, frankly, I don't care what variables are available in a given scope. I only care what variables are being used in the snippet I'm looking at. If I have to look around without a good reason, I get pissed off.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A question of style - declaring lexicals
by Abigail-II (Bishop) on Jun 03, 2004 at 13:44 UTC | |
|
Re^2: A question of style - declaring lexicals
by Fletch (Bishop) on Jun 03, 2004 at 17:46 UTC |