XP is just a number | |
PerlMonks |
Re^3: Coding styles using if/elseby kyle (Abbot) |
on Apr 06, 2007 at 18:01 UTC ( [id://608723]=note: print w/replies, xml ) | Need Help?? |
I put the shortest block in the if part, and the longer block in the else part, so the introductory clause is still visible in the editor window when you're reviewing the second part of the conditional. I try to do that too. I recall reading this guideline in a book about C ages ago. I don't adhere to it strictly, but if what I'm writing makes sense either way, I'll try to keep else as close to if as possible.
In Section
Seekers of Perl Wisdom
|
|