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