home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 18102 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.2 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mucs!jk
  2. From: jk@cs.man.ac.uk (John Kewley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Improvements on C++?
  5. Message-ID: <7044@m1.cs.man.ac.uk>
  6. Date: 16 Dec 92 13:17:52 GMT
  7. 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>
  8. Sender: news@cs.man.ac.uk
  9. Reply-To: jk@fiveg.icl.co.uk
  10. Organization: ICL Computers Limited, EDS Project
  11. Lines: 14
  12. 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
  13. In-Reply-To: <9234803.8057@mulga.cs.mu.OZ.AU>
  14.  
  15. I have always used whitespace to emphasize the difference:
  16.  
  17.     while ((p= get()) != 0) {...}
  18.                 ^^^
  19. This means whenever I type in if (a = b), I usually spot it as looking wierd
  20. immediately. This has virtually eliminated one of the most common, or so I believe,
  21. C++/C bugs from our code.
  22.  
  23. Note this style looks REALLY wierd to start with, but you soon get used to it.
  24. --
  25.         John M Kewley
  26.  
  27. ICL Computers Limited, Wenlock Way, West Gorton, Manchester. M12 5DR
  28. Tel: (+44) 61 223 1301 X2138  Email: jk@fiveg.icl.co.uk or jk@cs.man.ac.uk
  29.