[LUNI] Linux Programming
Curt Russell Crandall
ccrandal at wam.umd.edu
Mon Mar 11 14:34:01 CST 2002
Says who? I think it's a very clean way to code a simple
conditional... as long as your style is consistent it's not a problem at
all.
On Fri, 8 Mar 2002, Rich Holm wrote:
>
> Hate to break it to you but...
>
> > if (true) { one-statement; }
>
> Is horrible programming style in any language.
>
> Cheers,
> Rich
>
>
>
> At 09:19 AM 3/8/2002 -0600, scott thomason wrote:
> >On Mar 08 07:58 AM, Martin Maney wrote:
> > > Pardon me for saying it, but you sure make it sound like you would be a
> > > poster child for The Problem Of Write-Only Code. :-/
> >
> >Don't get me wrong; I _almost_ always indent in a manner compatible with
> >Python. I just don't like the idea of being forced into it. Sometimes
> >I might just want to do something like:
> >
> > if (true) { one-statement; }
> >
> >...if the situation calls for it. Of course, Perl kinda shines here because
> >it supports that situation more directly by being capable of saying:
> >
> > one-statement if true;
> >
> >...without the need for the extra punctuation. But that's a topic for another
> >list, I guess.
> >---scott
> >______________________________________________________________________
> >Linux Users Of Northern Illinois - Technical Discussion
> >luni at luni.org
> >http://luni.org/mailman/listinfo/luni
>
> ______________________________________________________________________
> Linux Users Of Northern Illinois - Technical Discussion
> luni at luni.org
> http://luni.org/mailman/listinfo/luni
>
More information about the luni
mailing list