|Keep It Simple, Stupid|
Logical expression styleby ferrency (Deacon)
|on Jul 12, 2002 at 15:27 UTC||Need Help??|
Hello. A question of style...
What is your preferred method of line-breaking conditional expressions (assuming they're long enough to warrant line breaking, unlike my examples below)? (I'm ignoring the "where does the curly brace go" issue here :)
I use the first two examples above under different conditions, but I haven't identified what makes me choose one or the other, yet.
Update: Lately I've been using operator-first notation. I almost always indent all of my perl the way Emacs perl-mode wants it indented, so most of the time I don't spend much time thinking about it.