home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 12995 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.7 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
  2. From: dave@cs.arizona.edu (Dave Schaumann)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Politically Correct C (was: Re: Freedom of Speech (was: Mister Ed Nilges)
  5. Message-ID: <1992Aug30.233605.27709@organpipe.uug.arizona.edu>
  6. Date: 30 Aug 92 23:36:05 GMT
  7. References: <1992Aug27.212216.18631@Princeton.EDU> <27AUG199222080334@zeus.tamu.edu> <1992Aug28.150040.21463@Princeton.EDU> <19978@plains.NoDak.edu>
  8. Sender: news@organpipe.uug.arizona.edu
  9. Reply-To: dave@cs.arizona.edu (Dave Schaumann)
  10. Distribution: usa
  11. Organization: University of Arizona
  12. Lines: 26
  13. In-Reply-To: hennebry@plains.NoDak.edu (Michael J. Hennebry)
  14.  
  15. In article <19978@plains.NoDak.edu>, hennebry@plains (Michael J. Hennebry) writes:
  16. >In article <1992Aug28.150040.21463@Princeton.EDU> egnilges@phoenix.Princeton.EDU (Ed Nilges) writes:
  17. >>but it is inexcusable to code
  18. >
  19. >>     if (!(farkle))
  20. >
  21. >>since it is obvious even to the tyro that the "scope" of the not
  22. >>operator ! is "farkle" (what else COULD it be??)  
  23. >
  24. >Without the "extra" parentheses it could be "fire" as in the following
  25. >example:
  26. >
  27. >boss.h: /* immutable if peon wants to keep his job */
  28. >
  29. >#define farkle fire || flood
  30.  
  31. This #define is broken.  Period.  The right place to put parens is around
  32. the macro definition, not everywhere it is expanded.
  33.  
  34. If you've got a boss that won't let you change broken header files, you
  35. might consider sprucing up your resume, and checking around, because
  36. chances are good s/hes got other obnoxious habits as well.
  37.  
  38. -- 
  39. Essentia non sunt multiplicanda praeter necessitatum -- William of Ockham
  40. (Fact need not be multiplied beyond necessity)
  41.