home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!gdt!bsmail!smee
- From: smee@bristol.ac.uk (Paul Smee)
- Newsgroups: comp.lang.c
- Subject: Re: C code Layout
- Message-ID: <1992Dec23.154450.2016@bristol.ac.uk>
- Date: 23 Dec 92 15:44:50 GMT
- References: <771@ulogic.UUCP>
- Reply-To: P.Smee@bristol.ac.uk (Paul Smee)
- Organization: University of Bristol
- Lines: 25
-
- In article <771@ulogic.UUCP> hartman@ulogic.UUCP (Richard M. Hartman) writes:
- >... am I in the minority here by preferring style C:
- >
- > keyword (condition)
- > {
- > statement1;
- > statement2;
- > statement3;
- > }
-
- Probably. I prefer style D:
-
- keyword (condition) {
- statement1;
- statement2;
- statement3;
- }
-
- Myself. I suspect it is due to my PL/1 upbringing, in which the {}s
- weren't used at all, and the 'end;' which terminated each block was
- pretty definitely (IMHO) part of the block which it ended.
-
- --
- Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
- P.Smee@bristol.ac.uk - ..!uunet!uknet!bsmail!p.smee - Tel +44 272 303132
-