home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mucs!jk
- From: jk@cs.man.ac.uk (John Kewley)
- Newsgroups: comp.lang.c++
- Subject: Re: Improvements on C++?
- Message-ID: <7044@m1.cs.man.ac.uk>
- Date: 16 Dec 92 13:17:52 GMT
- References: <1992Dec4.103551.664@netcom.com> <1992Dec8.165230.2587@ucc.su.OZ.AU> <1992Dec9.124436.20197@druid.uucp> <1992Dec12.144301.25735@ucc.su.OZ.AU>
- Sender: news@cs.man.ac.uk
- Reply-To: jk@fiveg.icl.co.uk
- Organization: ICL Computers Limited, EDS Project
- Lines: 14
- To: mucs!nessie!uknet!mcsun!uunet!haven.umd.edu!darwin.sura.net!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
- In-Reply-To: <9234803.8057@mulga.cs.mu.OZ.AU>
-
- I have always used whitespace to emphasize the difference:
-
- while ((p= get()) != 0) {...}
- ^^^
- This means whenever I type in if (a = b), I usually spot it as looking wierd
- immediately. This has virtually eliminated one of the most common, or so I believe,
- C++/C bugs from our code.
-
- Note this style looks REALLY wierd to start with, but you soon get used to it.
- --
- John M Kewley
-
- ICL Computers Limited, Wenlock Way, West Gorton, Manchester. M12 5DR
- Tel: (+44) 61 223 1301 X2138 Email: jk@fiveg.icl.co.uk or jk@cs.man.ac.uk
-