Most often there is a better alternative. I fail to see a good
alternative in the code on that page, but maybe that's just
because I'm not in good shape today.
This thread has generated several posts on a
simple goto which can be replaced simply,
but only one comment about the more interesting
goto. Come on, don't be shy!
Counting previous posts, I've received about 12 responses
on this code. Perhaps Army1987's unusually tepid
response counts as favorable. I'm grateful to Tim,
the *only* one who's ever taken the trouble to produce
a goto-free version. The other responses I've
received divide equally into two categories.
Half the responses, paraphrased, were:
replace the common code with a function call [or
some other response proving that respondent was
too lazy or incompetent to grok the program at all] The other half had the form:
fixing your ugly code would be a minute's child
play but I'm too busy now [presumably busy
constructing a 99th diatribe about ignoramuses
who write "void main()" ?]
Of course what I'd like to see

is:
A special convocation of C experts declared today
that Jamie's GOTO is the most readable way to express
a bridge solving program. Cornelia Dijkstra made
a special appearance; she regretted that her grandfather
couldn't come to apologize to Mr. Allen in person.
Ms. Dijkstra has submitted a retraction to the ACM
Bulletin on her grandfather's behalf.
But I'd be willing to live with (and indeed could then
promise to never mention GOTO in this newsgroup again)
a response like:
After careful objective scrutiny, 4 out of 5 c.l.c
experts agreed that Mr. Rentsch's submission was
more readable than Mr. Allen's. In the words of
long-time c.l.c guru Eric B. Keithfield:
What I frankly find irritating are responses like
fixing your ugly code would be a minute's child
play but I'm too busy now....
...
... [wait a few months, then post in another thread]
I've never come across
a good reason to use goto in "real" code).
Keith said:
In addition, I think you're write; ...
Did I really write "write" instead of "right"? Sigh.
Lately I write "their" for "there", "are" for "or"
and even "haven't" for "having". Is there a name for
this condition? I'm also losing my sense of smell.
How old are you, Keith?
James Dow Allen