home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13143 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  2.4 KB

  1. Path: sparky!uunet!UB.com!igor!thor!rmartin
  2. From: rmartin@thor.Rational.COM (Bob Martin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: GOTO, was: Tiny proposal for na
  5. Message-ID: <rmartin.715354315@thor>
  6. Date: 1 Sep 92 13:31:55 GMT
  7. References: <714668024@thor> <6800007@tisdec.tis.tandy.com> <rmartin.714931485@thor> <1992Aug30.083514.4066@mole-end.matawan.nj.us>
  8. Sender: news@Rational.COM
  9. Lines: 46
  10.  
  11. mat@mole-end.matawan.nj.us writes:
  12.  
  13. |Bob, I haven't used a goto in at least eight years, except perhaps in
  14. |a toy program to prove that the compiler takes it.  I believe that once
  15. |in that time have toyed with the idea of using one in real code, but
  16. |found a good way without it.
  17.  
  18. |Goto's may be like titles such as `Empress of India.'  There may
  19. |somewhere be a monarch who still is styled by that title, but nobody rules
  20. |India as an empire.  But I'll be fight for my goto, if need be, with my
  21. |fingernails against the omnidijkstratite juggernaut, and if someone wants
  22. |to call himself Emperor of the North Pole, he's got my permission.
  23.  
  24. |Goto's are like the write-in vote.  I don't expect ever to want to vote
  25. |for Elmer Plumpudding, but I want that slot on the voting machine.  (I
  26. |realize that the courts in Hawaii have ruled otherwise, but since when
  27. |are the courts a democratic institution?)
  28.  
  29. Mark:
  30.  
  31. I completely agree with you.  You have defended the right to use a
  32. goto.  That right should remain inviolate.  (As I said before, I don't
  33. want any software cops.)  But, just becuase we have the right, doesn't
  34. mean that it is wise, or that we should ignore the lessons of the
  35. past.  We also have the right to believe that the earth is flat.
  36.  
  37. What you have not defended, is the notion that gotos are a legitimate
  38. tool for the experienced programmer.  Or that there are some things
  39. that you just can't do without gotos.  Or that gotos are ok as long as
  40. they are well commented. 
  41.  
  42. In fact, you haven't used a goto in at least eight years.  Is there
  43. any other major language feature that your have left unused for that
  44. long?  (bitfields perhaps?)  Eight years of non-use is a powerful
  45. indictment.  So I assume that you, too, feel that the use of gotos is
  46. generally unwise, and that the more experienced you are, the less use
  47. you make of them.
  48.  
  49.  
  50.  
  51.  
  52. --
  53. Robert Martin                        Training courses offered in:
  54. R. C. M. Consulting                       Object Oriented Analysis
  55. 2080 Cranbrook Rd.                        Object Oriented Design
  56. Green Oaks, Il 60048 (708) 918-1004       C++
  57.