home *** CD-ROM | disk | FTP | other *** search
- 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
- From: royd@spider.co.uk (Roy Donaldson)
- Newsgroups: comp.lang.c
- Subject: Re: C code Layout
- Message-ID: <1992Dec23.111003.11481@spider.co.uk>
- Date: 23 Dec 92 11:10:03 GMT
- References: <AJ3U.92Dec17172600@onyx.cs.virginia.edu> <1992Dec18.151710.23851@scott.skidmore.edu> <771@ulogic.UUCP>
- Sender: news@spider.co.uk (USENET News System)
- Organization: Spider Systems Limited, Edinburgh, UK.
- Lines: 34
- Nntp-Posting-Host: orbweb.spider.co.uk
-
- In article <771@ulogic.UUCP> hartman@ulogic.UUCP (Richard M. Hartman) writes:
- >In article <1992Dec18.151710.23851@scott.skidmore.edu> pvonk@scott.skidmore.edu (Pierre VonKaenel) writes:
- >>In article <AJ3U.92Dec17172600@onyx.cs.virginia.edu> aj3u@onyx.cs.virginia.edu (Asim Jalis) writes:
- >>>I prefer the K&R style of using braces with statement blocks:
- >>>
-
- [ Big block of style examples removed ]
-
- I would say that my personal preference is for the style of
-
- statement
- {
- statement
- statement
- statement
- }
-
- However I have and will code in any of the 2 other bracketing styles
- mentioned. For me it comes down to consistency of style than personal
- ^^^^^^^^^^^^^^^^^^^^
- preference. If I'm modifying code which is written in either of the
- other 2 styles, I will follow the style that is already in the module.
- This leaves the module with a consistant feel to it and makes it far
- mroe readable than if I were to go in and add a different style half-way
- through the module.
-
- Roy.
-
-
- --
- ---
- J. Roy Donaldson | Spider Systems Ltd. | Spider Systems Ltd.,
- Software Engineer | Internetworking | Spider Park, Stanwell St.,
- royd@spider.co.uk | Group | Edinburgh, EH6 5NG.
-