good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I actually prefered the above style for a long time. But it turns out many people can't stand it because it turns all code into a venisian blind of alternating white and black. On the other hand lining up the braces seems very natural. I have come up with the following compromise, which sacrifices ease of editing for readability: if ($larry) { foo(); } elsif ($tom) { pie(); if ($stooges) { nyack(); } } else # Randal { cow(); }BTW: Code Complete rocks In reply to Re: (MeowChow) Re2: best practice
by inverse
|
|