in reply to Style: buried variables or double referencing?

Obviously, this is an abstract example, but if you choose meaningful variable names (and not just "count"), I don't see anything wrong no matter what way you do it. If you have to introduce a synthetic variable (something that is meaningful only to work around a programming issue, and doesn't map into the problem space), then be sure to add comments and keep its scope to an absolute minimum.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re: Style: buried variables or double referencing?