home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!pipex!mfmail!nmp
- From: nmp@mfltd.co.uk (Nic Percival (x5336))
- Subject: Re: C code Layout
- Message-ID: <1992Dec23.165659.3298@mfltd.co.uk>
- Sender: nmp@mfltd.co.uk (Nic Percival (x5336))
- Reply-To: nmp@mfltd.co.uk
- Organization: Micro Focus Ltd, Newbury, England
- References: <771@ulogic.UUCP> <1992Dec23.153137.13423@fcom.cc.utah.edu>
- Date: Wed, 23 Dec 1992 16:56:59 GMT
- Lines: 79
-
-
- In article <1992Dec23.153137.13423@fcom.cc.utah.edu>, swillden@news.ccutah.edu (Shawn Willden) writes:
- > hartman@ulogic.UUCP (Richard M. Hartman) writes:
- >
- > [ Styles A and B deleted (you already know what they are) ]
- >
- > : ... am I in the minority here by preferring style C:
- > :
- > : keyword (condition)
- > : {
- > : statement1;
- > : statement2;
- > : statement3;
- > : }
- > :
- > : [...] consider this -- if you have:
- > :
- > : if (cond)
- > : statement;
- > :
- > : and then have to add another statement to it:
- > :
- > : if (cond)
- > : {
- > : statement;
- > : statement2;
- > : }
- > :
- > : My editor (vi with auto-indent set) requires additional effort
- > : to move those braces back to the "outdented" position, whereas
- >
- > This thread is entirely too polite. Don't you people know that when
- > coding styles are discussed massive *FLAMAGE* and LOTS OF SHOUTING IS
- > REQUIRED TO DO THE SUBJECT JUSTICE???????
- >
- > In keeping with internet custom I would suggest to Mr. Hartman that he
- > GET A LIFE AND A REAL EDITOR LIKE EMACS AND STOP SCREWING AROUND WITH
- > VI FOR HELLS SAKE MAN DONT YOU KNOW THIS IS THE 90S???!?!?!? YOUR
- > PROBABLY ONE OF THOSE PINKOCOMMIE WHITESPACELOVING FREAKS TO!!!!
- >
- > : -Richard Hartman
- > : hartman@uLogic.COM
- >
- > --
- > Shawn Willden
- > swillden@icarus.weber.edu
- >
- > P.S. I prefer style C myself
-
- Get a life? Get a real editor like EMACS? At the risk of getting off the
- subject, EMACS is poo, full of disgusting cryptic control sequences
- (what was it CNTRL-X CNTRL-S to save?) and vi is quite wonderful and sexy
- and fun and great and etc etc.
-
-
-
-
- And as for white space I think thats nice too.
-
- Oh yes. C layout.
- I like..
-
- keyword( fruitbat )
- {
- ocelot(PINKOCOMMIE);
- etc etc..
- }
-
- Whether its possible to enter this 2.4 seconds faster or slower than the
- other format, I don't really care. Most code I've ever come across is like
- this, and I'll stick with it.
-
- P.S I've got some macros for vi that solve mazes. Try that in poo. Sorry,
- EMACS.
- --
- Nic Percival | |
- Micro Focus | "Anything is good and useful | nmp@mfltd.co.uk
- Newbury | if it's made of chocolate.." | (0635) 32646 Ext 5336
- Berks, RG13 1JT | |
-