Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!dino!cs.iastate.edu!hascall From: hascall@cs.iastate.edu (John Hascall) Newsgroups: comp.lang.c Subject: if (e1) return e2; [else] s1; Message-ID: <887@dino.cs.iastate.edu> Date: 23 Mar 90 20:50:21 GMT Sender: usenet@dino.cs.iastate.edu Organization: Ministry of Silly Walks Lines: 22 Ok, style mavens, which is "better": if (e1) return e2; if (e1) return e2; else s1; s1; --------------------------------------------------------------- I'm not sure which of the above is better, but I am sort of "stuck on" the following convention: if (e1) s1; \ --or-- \ if (e1) { | Does this seem reasonable? s1; | (ignoring whether or not the `{' } | belongs on the next line or not) --but never-- | if (e1) / s1; / Stylistically yours, John Hascall hascall@atanasoff.cs.iastate.edu