Subject: Re: setting and using progname.
To: Johan Danielsson <joda@pdc.kth.se>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 10/06/2000 00:41:22
[ On , October 6, 2000 at 02:39:20 (+0200), Johan Danielsson wrote: ]
> Subject: Re: setting and using progname.
>
> Greywolf <greywolf@starwolf.com> writes:
> 
> > What's wrong with '?:' ?  It's perfectly good code and not silly at
> > all.  If anything, it's more concise for a simple test.
> 
> But if the code gets a lot more complicated than x ? y : z, it gets
> very hard to read.

Liberal and consistent use of parenthesis, newlines, and indentation can
help make nested '?:' statements easier to read, just as liberal and
consistent use of braces, newlines, and indentation can help make nested
'if else' statements easier to read.


-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>