home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!rpi!scott.skidmore.edu!pvonk
- From: pvonk@scott.skidmore.edu (Pierre VonKaenel)
- Subject: Re: C code Layout
- Message-ID: <1992Dec18.151710.23851@scott.skidmore.edu>
- Organization: Skidmore College, Saratoga Springs NY, 12866
- References: <MARTINC.92Dec16111734@hatteras.cs.unc.edu> <1992Dec17.081451@eklektix.com> <AJ3U.92Dec17172600@onyx.cs.virginia.edu>
- Date: Fri, 18 Dec 1992 15:17:10 GMT
- Lines: 28
-
- 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:
- >
- > keyword (condition) {
- > statement1;
- > statement2;
- > statement3;
- > }
- >
-
- I used to use this syntax until once I forgot one of the { and it
- wasn't noticable. Took a while to find that bug. At least..
-
- keyword (condition)
- {
- statement1;
- statement2;
- statement3;
- }
-
- is easier to spot. It's also more symmetric, which means from an
- artistic view, more pleasing (I know, I know... subjective!)
-
- --
- Pierre von Kaenel | Skidmore College | pvonk@skidmore.edu
- Math & CS Dept. | Saratoga Springs, NY 12866 | (518)584-5000 Ext 2391
-
- "Experience is the name everyone gives to their mistakes." Oscar Wilde
-