Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!jamiller From: jamiller@hpcupt1.HP.COM (Jim Miller) Newsgroups: comp.lang.c Subject: Re: if (e1) return e2; [else] s1; Message-ID: <5940027@hpcupt1.HP.COM> Date: 26 Mar 90 19:45:45 GMT References: <887@dino.cs.iastate.edu> Organization: Hewlett Packard, Cupertino Lines: 25 >> Ok, style mavens, which is "better": >> >> if (e1) return e2; if (e1) return e2; >> else s1; s1; I'd vote for the second one. > >or 'Allman' (the names came from an 'emacs' manual, BTW): > > if (e1) > { > s1; > } I like that one, because I prefer the following: if (e1) { s1; } (IMHO) I don't think I "lose" anything by putting the { with the if, but I think I do if the } is not on a separtate line. jim miller