![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Logical expression styleby Abigail-II (Bishop) |
on Jul 12, 2002 at 15:57 UTC ( #181322=note: print w/replies, xml ) | Need Help?? |
I mostly use the "operator goes at the end" style, although I
do sometimes make an exception for or die.
As a condition for an if or while,
I always put the operator at the end, unless it wouldn't
fit the line, and there's other decent way of breaking the
line (my number 1 rule for formatting code is "a line shall
never exceed 80 characters").
It is important though that operators that are on the same "level" are lined up vertically. (I'm a big fan of lining up similar things in columns). Abigail
In Section
Meditations
|
|