home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18823 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.7 KB  |  60 lines

  1. Newsgroups: comp.lang.c
  2. 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
  3. From: swillden@news.ccutah.edu (Shawn Willden)
  4. Subject: Re: C code Layout
  5. Message-ID: <1992Dec23.153137.13423@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Reply-To: swillden@icarus.weber.edu
  8. Organization: University of Utah Computer Center
  9. X-Newsreader: Tin 1.1 PL3
  10. References: <771@ulogic.UUCP>
  11. Date: Wed, 23 Dec 92 15:31:37 GMT
  12. Lines: 46
  13.  
  14. hartman@ulogic.UUCP (Richard M. Hartman) writes:
  15.  
  16. [ Styles A and B deleted (you already know what they are) ]
  17.  
  18. : ... am I in the minority here by preferring style C:
  19. :     keyword (condition) 
  20. :         {
  21. :         statement1;
  22. :         statement2;
  23. :         statement3;
  24. :         }
  25. : [...] consider this -- if you have:
  26. :     if (cond)
  27. :         statement;
  28. : and then have to add another statement to it:
  29. :     if (cond)
  30. :     {
  31. :         statement;
  32. :         statement2;
  33. :     }
  34. : My editor (vi with auto-indent set) requires additional effort
  35. : to move those braces back to the "outdented" position, whereas
  36.  
  37. This thread is entirely too polite.  Don't you people know that when
  38. coding styles are discussed massive *FLAMAGE* and LOTS OF SHOUTING IS
  39. REQUIRED TO DO THE SUBJECT JUSTICE???????
  40.  
  41. In keeping with internet custom I would suggest to Mr. Hartman that he
  42. GET A LIFE AND A REAL EDITOR LIKE EMACS AND STOP SCREWING AROUND WITH
  43. VI FOR HELLS SAKE MAN DONT YOU KNOW THIS IS THE 90S???!?!?!?  YOUR
  44. PROBABLY ONE OF THOSE PINKOCOMMIE WHITESPACELOVING FREAKS TO!!!!
  45.  
  46. :         -Richard Hartman
  47. :         hartman@uLogic.COM
  48.  
  49. --
  50. Shawn Willden
  51. swillden@icarus.weber.edu
  52.  
  53. P.S. I prefer style C myself
  54.