Chris Jones wrote:
On Sun, Apr 19, 2009 at 04:35:27AM EDT, Hendrik van Rooyen wrote:
Brian Blais wrote:
[snip]
In my defense of the goto, I would like to make clear that I do not
support its use to produce spaghetti. In general, muddled thinking,
coupled with expediency, is what I think are the true precursors of
spaghetti code. The goto is an innocent tool that can be used for
good or evil.
How true.
At least goto's have the merit of naming their target.
Except in (classic) Pascal where they are unsigned integers (they still
need to be declared).
I have dealt with C code built on the original author's partiality for
200-line+ nested loops where it looked like every other line or so was
either a "break" or a "continue", goto's without the name that don't
clearly state where they are going.
Thank goodness he was not familiar with setjmp/longjmp.
--
http://mail.python.org/mailman/listinfo/python-list