On May 01, 2007, at 15:12 UTC, Glenn L. Austin wrote:

> Here's the kicker:  If you have your declarations of variables in the
> immediate vicinity of their use, you have now made it possible to  
> easily refactor that code simply by moving that entire block to a new
> location.  However, if the declaration is at the top of the routine  
> "with all of the others", then you have to go through multiple steps 
> to refactor the code (move the code then move the declaration).   

Good grief, I can't believe I forgot to mention this one in my last
reply, though I've used it many times in the past.  Good catch, Glenn
-- this is indeed probably the strongest reason to declare variables
where they're used.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to