home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!mimsy!casemo!keating
- From: keating@casemo.UUCP (John Keating )
- Newsgroups: comp.software-eng
- Subject: Re: C code Layout
- Message-ID: <454@casemo.UUCP>
- Date: 17 Dec 92 18:22:22 GMT
- References: <1992Dec14.074411@eklektix.com> <1992Dec15.153859.29057@nastar.uucp>
- Organization: Cray Communications, Inc.
- Lines: 39
-
- In article <1992Dec15.153859.29057@nastar.uucp>, phardie@nastar.uucp (Pete Hardie) writes:
-
- > A brief comment (NPI :->) here. I find that the brace style:
- > if(condition)
- > {
- > statement;
- > ...
- > }
-
- > is more readable than this style:
- > if(condition) {
- > statement;
- > ...
- > }
-
- > However, for some reason, I detest the indention of the braces, like this:
- > if(condition)
- > {
- > statement;
- > ...
- > }
-
- I prefer the following:
- if (condition)
- {
- statement ;
- ...
- }
-
- This sets both the condition statement and the action statements apart, plus
- keeps the braces aligned.
-
- I have no love at all for the second method above (K&R?)
-
- John W. Keating, III
- --
- John William Keating, III /-----------------------------------------
- -+=< Cray Communications, Inc. >=+- | If you do something stupid after reading
- formerly: Dowty Communications Inc. | this message, it is your own fault, not
- keating%casemo@mimsy.cs.umd.edu | mine nor the company I work for. -me-
-