in reply to Uncuddled else?

Despite the suggestion of L.Wall et.al. I have always prefered to put my braces on lines all by themselves, and have never considered it ugly. My reason is simple: no matter what editor I am using (even print outs!) the braces are always aligned vertically. This makes my life so much easier when I need to look through some code real quick to find some particular block. I can scan through my code on any machine with any editor. That seems a far cry from ugly.

So in my (ocasionally) humble opinion you should not cuddle your elses. But of course, to each there own.

Replies are listed 'Best First'.
RE: RE: Uncuddled else?
by Penfold (Novice) on Oct 17, 2000 at 13:15 UTC
    Sounds like a case for a poll *grin*
    To cuddle, or not to cuddle?
    Personally, I don't: I like having open and close braces aligned: makes finding them easier (of course, xemacs bracket match withh full highlighting on in cperl-mode helps, too...!)
      #i like cuddling. vertical real estate is a premium. also: # easy to see just 2 statements if (...) { } elseif (...) { } if (...) { } # harder to see only 2 statements if (...) { } elsif (...) { } if (...) { }