if (e1) return e2; [else] s1;

Robert A. Osborne robert at isgtec.UUCP
Thu Mar 29 03:21:40 AEST 1990


In article <1990Mar25.222115.7161 at caen.engin.umich.edu> chrisl at caen.engin.umich.edu (Chris Lang) writes:
>That reminds me to ask, what about this, which is basically my style?
>
>void foo(struct spam *bar)
>    {
>    } /* foo() */
Breaks ]] and [[ in vi. The only indenting I can support is
    func()
    {
        if() {
           /* stuff */
        }
    }
or
    func()
        if()
        {
           /* stuff */
        }
    }

If you are writing code that no one, absolutely no one, but yourself
will look at, do what ever you want.  If you are writing code for others
to read it should be K&R, a style most people are at least familiar with,
if not a style they are already using.

Rob.
-- 
Robert A. Osborne   {...uunet!mnetor,...utzoo}!lsuc!isgtec!robert 



More information about the Comp.lang.c mailing list