Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!koosh!bob From: bob@omni.com (Bob Weissman) Newsgroups: comp.lang.c Subject: Re: lint [but not really printf] Summary: No more style wars, please Message-ID: <150@mondo.omni.com> Date: 16 Jul 89 02:31:24 GMT References: <328@tree.UUCP> <417@siswat.UUCP> <105@borabora.omni.com> <203@estinc.UUCP> Organization: OMNI Solutions, Los Altos, CA Lines: 25 In article <203@estinc.UUCP>, fnf@estinc.UUCP (Fred Fish) writes: > I can honestly say that I have NEVER been bitten by this sort of bug in > my own C code, because my style rules dictate that it be written as: > if (condition) { > action; > } ... > If you are going to leave them out, at least have the decency to > write it as: > if (condition) action; > (Sorry about the obvious, but this is my pet peeve #1 about other > people's code...) P L E A S E, let us not begin another round of My C Coding Style Is Better Than Yours. How boring. Remember the origin of this thread of discussion was lint. I still maintain that lint ought to warn you about "if (e);". -- Bob Weissman Domainish: bob@omni.com UUCPish: ...!{amdahl,apple,pyramid,tekbspa,uunet}!koosh!bob