httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@dedasys.com (David N. Welton)
Subject Re: [apreq-2] conditionals
Date Sun, 20 Apr 2003 10:43:57 GMT
Joe Schaefer <joe@sunstarsys.com> writes:

> Cool, but I'd rather see that written this way
> 
>   if (a > 0)
>       c = 3;
>   else
>       d = 3;

+1 - it increases readability.  I don't like using the ternary
operator where it too makes the code easier to read, and there aren't
that many cases where that is true.

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

Mime
View raw message