home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 12981 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!sol.ctr.columbia.edu!eff!news.oc.com!spssig.spss.com!hosken
  3. From: hosken@spss.com (Bill Hosken)
  4. Subject: Re: GOTO, was: Tiny proposal for na
  5. Message-ID: <1992Aug27.181013.29933@spss.com>
  6. Sender: news@spss.com (Net News Admin)
  7. Organization: SPSS, Inc.
  8. References: <714668024@thor> <6800007@tisdec.tis.tandy.com> <1992Aug26.130335.26725@hemlock.cray.com> <1992Aug26.194538.1598@spss.com> <rmartin.714931485@thor>
  9. Date: Thu, 27 Aug 1992 18:10:13 GMT
  10. Lines: 26
  11.  
  12. In article <rmartin.714931485@thor>, rmartin@thor.Rational.COM (Bob Martin) writes:
  13. > hosken@spss.com (Bill Hosken) writes:
  14. > >Clear thinking helps to write good code, gotos whether or not.
  15. > This is sort of like saying:  "I am an expert driver, my clarity of
  16. > driving skills entitles me to ignore certain stop signs, when I know
  17. > (by virtue of my great skill) that there is no cross traffic.
  18. > So we have rules.  These rules protect us average types from the guys
  19. > who think they are "real good drivers".  When some guy blows a stop
  20. > sign, it doesn't matter to me, one whit, if he is the greatest driver
  21. > in the world, I will still applaud the cop who pulls him over.
  22.  
  23. The rule "avoid goto" does not stop anyone from writing confusing
  24. code.  It probably makes some people think more about the code
  25. they write when seeking alternatives to the goto, but taken alone
  26. it does little good.  
  27.  
  28. A better rule would be "Be prepared to give a clear and convincing
  29. argument that the code is correct". 
  30.  
  31.  
  32.