in reply to Re: redeclaring variables with 'my'
in thread redeclaring variables with 'my'
So yes, there is a small amount of overhead associated with the safer mechanism. However when you try conciously switching styles between projects you will quickly find that the safer style results in big wins in terms of reliability, development, and debugging. Besides which, aggressively modularizing your code etc gives you opportunities to later find and fix large algorithm mistakes. (Leading to better performance wins than optimizing the heck out of your code up front can do.)
The tiny performance difference is a really, really bad excuse for keeping a bad habit. For more on this topic, there is a sample section from Code Complete online.
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE (tilly) 2: redeclaring variables with 'my'
by Fastolfe (Vicar) on Nov 11, 2000 at 02:38 UTC |