begin  quoting Andrew Lentvorski as of Thu, Jan 03, 2008 at 12:01:55PM -0800:
> David Brown wrote:
[snip]
> >Maybe this comes from doing lisp/scheme, where the close parens are almost
> >always just placed at the end of the last line.  I have seen C code like
> >that, but it was fairly unpleasant to read.
> 
> Yeah, I never really understood why everybody thought:
> 
> if {
>     if {
>         if {
>         }
>     }
> }
> 
> was so much better than
> 
> if {
>     if {
>         if {
>         }}}

Symmetry.

Maybe if you look at the braces as shorthand for begin and end...

if expression begin
   if expression begin
      if expression begin
         do something
         end end end
 
Come to think of it, you could do that with shell scripts. The do..done
could just stack the dones up on one line...

> Sort of like why I don't get why people think XML end tags that match by 
> name are such a big thing.
 
It's so much clearer on very small data-sets.

> But, then, I'm not particularly religious about whitespace or braces.

What are you feeling religious about these days?

> And I've been using a decent editor from my initial introduction to 
> workstations and mainframes.  (Okay, that's a lie.  But I knew that 
> XEDIT was crap even when I didn't know what a good editor was.)
> 
> <shrug>

Heh.

It's a good thing, I think, to have tried several different editors.

-- 
It matters little to me which one you pick
Just choose the one that gives you a kick.
Stewart Stremler

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to