home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18819 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!edcastle!spider!raft.spider.co.uk!royd
  2. From: royd@spider.co.uk (Roy Donaldson)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C code Layout
  5. Message-ID: <1992Dec23.111003.11481@spider.co.uk>
  6. Date: 23 Dec 92 11:10:03 GMT
  7. References: <AJ3U.92Dec17172600@onyx.cs.virginia.edu> <1992Dec18.151710.23851@scott.skidmore.edu> <771@ulogic.UUCP>
  8. Sender: news@spider.co.uk (USENET News System)
  9. Organization: Spider Systems Limited, Edinburgh, UK.
  10. Lines: 34
  11. Nntp-Posting-Host: orbweb.spider.co.uk
  12.  
  13. In article <771@ulogic.UUCP> hartman@ulogic.UUCP (Richard M. Hartman) writes:
  14. >In article <1992Dec18.151710.23851@scott.skidmore.edu> pvonk@scott.skidmore.edu (Pierre VonKaenel) writes:
  15. >>In article <AJ3U.92Dec17172600@onyx.cs.virginia.edu> aj3u@onyx.cs.virginia.edu (Asim Jalis) writes:
  16. >>>I prefer the K&R style of using braces with statement blocks:
  17. >>>
  18.  
  19. [ Big block of style examples removed ]
  20.  
  21. I would say that my personal preference is for the style of
  22.  
  23.         statement
  24.         {
  25.                 statement
  26.                 statement
  27.                 statement
  28.         }
  29.  
  30. However I have and will code in any of the 2 other bracketing styles
  31. mentioned. For me it comes down to consistency of style than personal
  32.                                    ^^^^^^^^^^^^^^^^^^^^
  33. preference. If I'm modifying code which is written in either of the
  34. other 2 styles, I will follow the style that is already in the module.
  35. This leaves the module with a consistant feel to it and makes it far
  36. mroe readable than if I were to go in and add a different style half-way
  37. through the module.
  38.  
  39. Roy.
  40.  
  41.  
  42. -- 
  43. ---                            
  44. J. Roy Donaldson      |  Spider Systems Ltd.  |      Spider Systems Ltd.,
  45. Software Engineer     |    Internetworking    |      Spider Park, Stanwell St.,
  46. royd@spider.co.uk     |        Group          |      Edinburgh, EH6 5NG.
  47.