Wednesday, March 23, 2011

Nesting Functions vs Intermediate Variables

Unless you really love looking at the call stack, create intermediate variables and un-nest your function. The compiler will compile away these variables anyways, so no loss in efficiency. They will be handy for debugging and make the code clearer.

No comments:

Post a Comment