comp.lang.ada
 help / color / mirror / Atom feed
From: nobody@REPLAY.COM (Anonymous)
Subject: Re: GOTO considered necessary (reworked)
Date: 1997/06/16
Date: 1997-06-16T00:00:00+00:00	[thread overview]
Message-ID: <199706161352.PAA27178@basement.replay.com> (raw)
In-Reply-To: 5nn2fm$11dk$1@prime.imagin.net


<199706121410.QAA05823@basement.replay.com>

On 12 Jun 1997 13:04:05 -0400, dewar@merv.cs.nyu.edu (Robert Dewar)
wrote:

> Jeff Carter responded to Sam's article with a typical bunch of dogmatic
> never-use-gotos stuff that smacks of the fanaticism that was popular in
> the 70's, but I would have hoped had disappeared by now.

Yes, that would explain why I did *not* object to the FSM example. I'm
sorry to see this typical dogmatic never-say-never-use-gotos stuff that
smacks of fanaticism from you :)

> 
> Anyway Sam, take this as a vote from me that your treatment is very nice,
> and just at the right level of dont-use-goto-except-where-useful.
> 
> I particularly object to Jeff's notion that introducing miscellaneous
> boolean flags to replace structured use of gotos (like the CONTINUE)
> makes code more readable. Far from it in my opinion, The use of Boolean's
> to encode state that is more reasonably and clearly encoded in the program
> counter is a big mistake in my opinion, and can often severely damage
> readability in these rare cases we are talking about.

I think I did not introduce any Boolean flags. I certainly did not
introduce one in the continue example. I introduced a condition because
the example, as given, was meaningless.

On continue, I find it interesting that Kernighan & Plauger included
continue in ratfor, and ever once used it in _Software Tools_. (I speak
from memory, so please correct me if I'm wrong.)

My point on all cases was that goto introduces an increased likelihood
of error on modification, and all of these cases had an alternative that
was as clear as the goto version, but eliminated that increased chance
of error. Of course, at some point clarity becomes a taste issue, so you
may claim that my versions are not as clear as the versions with goto,
IYNSHO.

Jeff Carter  PGP:1024/440FBE21
My real e-mail address: ( carter @ innocon . com )
"Now go away, or I shall taunt you a second time."
Monty Python & the Holy Grail

Posted with Spam Hater - see
http://www.compulink.co.uk/~net-services/spam/




  parent reply	other threads:[~1997-06-16  0:00 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-11  0:00 GOTO considered necessary (reworked) Samuel Mize
1997-06-11  0:00 ` Bryce Bardin
1997-06-12  0:00 ` Anonymous
1997-06-12  0:00   ` John G. Volan
1997-06-16  0:00     ` Anonymous
1997-06-12  0:00   ` Robert Dewar
1997-06-12  0:00     ` John G. Volan
1997-06-13  0:00       ` Robert A Duff
1997-06-16  0:00         ` John G. Volan
1997-06-17  0:00           ` Robert A Duff
1997-06-25  0:00             ` Van Snyder
1997-06-17  0:00           ` Robert Dewar
1997-06-17  0:00             ` Robert A Duff
1997-06-18  0:00               ` Spam Hater
1997-06-20  0:00               ` Robert Dewar
1997-06-20  0:00               ` Robert Dewar
1997-06-21  0:00                 ` Robert A Duff
1997-06-21  0:00                   ` Robert Dewar
1997-06-25  0:00               ` Wolfgang Gellerich
1997-06-25  0:00                 ` Michael F Brenner
1997-06-26  0:00                   ` Wolfgang Gellerich
1997-06-25  0:00                 ` Samuel T. Harris
1997-06-19  0:00             ` Karel Th�nissen
1997-06-19  0:00               ` Karel Th�nissen
1997-06-23  0:00               ` John G. Volan
1997-06-23  0:00                 ` Spam Hater
1997-06-23  0:00                 ` Robert Dewar
1997-06-24  0:00                   ` Brian Rogoff
1997-06-25  0:00                   ` Featuritis not always bad (was re: GOTO considered necessary) Karel Th�nissen
1997-06-26  0:00                     ` Robert Dewar
1997-06-26  0:00                       ` Karel Th�nissen
1997-06-25  0:00                 ` GOTO considered necessary (reworked) Karel Th�nissen
1997-06-23  0:00             ` John G. Volan
1997-06-17  0:00           ` Robert I. Eachus
1997-07-21  0:00           ` Shmuel (Seymour J.) Metz
1997-06-12  0:00 ` Michael F Brenner
1997-06-17  0:00   ` Robert Dewar
1997-06-17  0:00     ` Robert A Duff
1997-06-20  0:00       ` Robert Dewar
1997-06-21  0:00         ` Robert A Duff
1997-06-21  0:00           ` Robert Dewar
1997-06-13  0:00 ` Robert A Duff
1997-06-14  0:00   ` Samuel Mize
1997-06-14  0:00     ` Matthew Heaney
1997-06-14  0:00   ` Robert Dewar
1997-06-16  0:00     ` Spam Hater
1997-06-17  0:00       ` Robert Dewar
1997-06-17  0:00         ` Spam Hater
1997-06-16  0:00     ` Robert A Duff
1997-06-17  0:00       ` Spam Hater
1997-06-17  0:00         ` Robert A Duff
1997-06-19  0:00           ` Spam Hater
1997-06-17  0:00         ` Robert Dewar
1997-06-17  0:00           ` Robert A Duff
1997-06-19  0:00             ` John Herro
1997-06-25  0:00               ` Function result Van Snyder
1997-06-27  0:00                 ` Robert Dewar
1997-06-27  0:00                 ` Jon S Anthony
1997-06-20  0:00             ` GOTO considered necessary (reworked) Robert Dewar
1997-06-17  0:00           ` Spam Hater
1997-06-14  0:00   ` Samuel Mize
1997-06-16  0:00 ` Anonymous [this message]
1997-06-16  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox