home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!sol.ctr.columbia.edu!hamblin.math.byu.edu!hellgate.utah.edu!fcom.cc.utah.edu!swillden
- From: swillden@news.ccutah.edu (Shawn Willden)
- Subject: Re: C code Layout
- Message-ID: <1992Dec23.153137.13423@fcom.cc.utah.edu>
- Sender: news@fcom.cc.utah.edu
- Reply-To: swillden@icarus.weber.edu
- Organization: University of Utah Computer Center
- X-Newsreader: Tin 1.1 PL3
- References: <771@ulogic.UUCP>
- Date: Wed, 23 Dec 92 15:31:37 GMT
- Lines: 46
-
- hartman@ulogic.UUCP (Richard M. Hartman) writes:
-
- [ Styles A and B deleted (you already know what they are) ]
-
- : ... am I in the minority here by preferring style C:
- :
- : keyword (condition)
- : {
- : statement1;
- : statement2;
- : statement3;
- : }
- :
- : [...] consider this -- if you have:
- :
- : if (cond)
- : statement;
- :
- : and then have to add another statement to it:
- :
- : if (cond)
- : {
- : statement;
- : statement2;
- : }
- :
- : My editor (vi with auto-indent set) requires additional effort
- : to move those braces back to the "outdented" position, whereas
-
- This thread is entirely too polite. Don't you people know that when
- coding styles are discussed massive *FLAMAGE* and LOTS OF SHOUTING IS
- REQUIRED TO DO THE SUBJECT JUSTICE???????
-
- In keeping with internet custom I would suggest to Mr. Hartman that he
- GET A LIFE AND A REAL EDITOR LIKE EMACS AND STOP SCREWING AROUND WITH
- VI FOR HELLS SAKE MAN DONT YOU KNOW THIS IS THE 90S???!?!?!? YOUR
- PROBABLY ONE OF THOSE PINKOCOMMIE WHITESPACELOVING FREAKS TO!!!!
-
- : -Richard Hartman
- : hartman@uLogic.COM
-
- --
- Shawn Willden
- swillden@icarus.weber.edu
-
- P.S. I prefer style C myself
-