home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!fburton
- From: fburton@nyx.cs.du.edu (Francis Burton)
- Subject: Re: C code Layout
- Message-ID: <1992Dec23.224436.8985@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
- Date: Wed, 23 Dec 92 22:44:36 GMT
- Lines: 33
-
- Richard Hartmann writes:
-
- >... am I in the minority here by preferring style C:
- >
- > keyword (condition)
- > {
- > statement1;
- > statement2;
- > statement3;
- > }
- >
-
- Why not add in the "economy of vertical space" argument to get:
-
- keyword (condition) {
- statement1;
- statement2;
- statement3;
- }
-
- Which is my indentation style. I got the habit from "Software
- Tools" by Kernighan and Plauger. Their Ratfor "language" provided
- me with a welcome escape from FORTRAN, before I acquired a useable
- C compiler.
-
- However, I never see code using this style nowadays, and indent(1)
- does not support it (I think). Why is it so unpopular when it has
- so much going for it?
-
- --
- Francis Burton Physiology, Glasgow University, Glasgow G12 8QQ, Scotland.
- 041 339 8855 x8085 | JANET: F.L.Burton@glasgow.ac.uk !net: via mcsun & uknet
- "A horse! A horse!" | INTERNET: via nsfnet-relay.ac.uk BITNET: via UKACRL
-