in reply to A question of style - declaring lexicals
I tend to declare my variables wrt to these guidelines.
- If the variable is used thru out an entire sub, I declare it at the top.
- If the variable is used exclusively within a loop, declare it inside the loop.
- If a variable will be used part way thru' the method/sub I will declare it on a line just before it is used.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: A question of style - declaring lexicals
by Abigail-II (Bishop) on Jun 03, 2004 at 13:38 UTC |
In Section
Meditations