httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [POLL] Style guide enhancement/clarification
Date Wed, 16 Jul 1997 18:35:43 GMT
Rodent of Unusual Size wrote:

>     My rationale on the subject of wrapping..  Wrapping "whenever you
>     have to" but putting as many terms/element on each line, means you
>
>     need to visually evaluate the statement/expression in two
> dimensions
>     (make sure you've processed all the things on the line &
> remembered
>     them, then move to the next line & repeat).  I find that makes
>     interpretation of Boolean complex conditions, in particular, quite
>
>     difficult.  Hence, I prefer to see all the terms on one line, or
>     else one per line.  MHO.

To take a concrete (though too short to really need wrapping), I find:

if((a && b)
   || (c && d)

more readable than:

if((a
    && b)
   || (c
       && d))

for example. I do like the operators to be indented according to
nesting.

Cheers,

Ben.

--
Ben Laurie                Phone: +44 (181) 994 6435  Email:
ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author



Mime
View raw message