httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@decus.org (Rodent of Unusual Size)
Subject Re: More for the style guide
Date Tue, 15 Jul 1997 19:19:27 GMT
>From the fingers of Alexei Kosut flowed the following:
>
>if (cond1)
>    gritch1;
>else if (!cond2)
>    gritch2;
>
>or
>
>if (cond1) {
>    gritch1;
>}
>else if (!cond2) {
>    gritch2;
>}

    Ah!  We're in agreement then, though I'll admit a strong preference
    for the latter - I like if-blocks to be braced.  I have a definite
    abhorrence for things of the form

      if (cond1) gritch1;

    a) because I find them less easy to read/locate, and b) because
    they're a total pain when you have to add statements to the block.

    #ken    :-)}

Mime
View raw message