John Baldwin wrote:
> This is your opinion not gospel truth.  The reason I and others leave out
> braces except when they are needed is to minimize the number of wasted
> vertical space so that more code can fit on a screen at a time.  This is
> the same reason for using
> 
> if (foo) {
>         ...
> }
> 
> Instead of:
> 
> if (foo)
> {
>         ...
> }

Actually, that's a tools issue; specifically, it has to do with
"%" and "$" in "vi".

Just like:

        int
        foo( x)

instead of:

        int foo(x)

Has todo with "grep ^name <all the sources>" for function
declatation finding, vs. references.

As for "extra braces", I've seen people do:

        #if foo         /* { */
                ...
        #else           /* !foo } { */
        #endif          /* !foo } */

To let people use statement start/end block matching on "#if", too.

Our tools dictate a lot of what people say constitutes "style", but
what really works out to be "efficient use of tools".

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to