Path: utzoo!censor!isgtec!robert From: robert@isgtec.UUCP (Robert A. Osborne) Newsgroups: comp.lang.c Subject: Re: if (e1) return e2; [else] s1; Message-ID: <358@isgtec.UUCP> Date: 28 Mar 90 17:21:40 GMT References: <887@dino.cs.iastate.edu> <7990006@hpopd.HP.COM> <1990Mar25.222115.7161@caen.engin.umich.edu> Reply-To: robert@isgtec.UUCP (Robert Osborne) Organization: ISG Technologies Inc., Mississauga, Ontario Lines: 29 In article <1990Mar25.222115.7161@caen.engin.umich.edu> chrisl@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