http://qs321.pair.com?node_id=181322


in reply to Logical expression style

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