break, et cetera [long, but you can stop early]
Mike Shannon
mikes at 3comvax.UUCP
Thu Nov 21 06:00:16 AEST 1985
Chris Torek in the cited article:
> I personally might even use a `Knuth-style goto', depending on
> the situation:
>
> for (i = 0; i < HIGH; i++)
> if (array[i] == X)
> goto found;
> /* code to deal with `not found' */
> return;
> found:
> /* code to deal with `found' */
> return;
---
How about some background on 'Knuth-stype goto's? I've run across
this style before, where there is some sort of descriptive label every
5 or 6 lines. And lots of goto's.
Does Knuth like these? Do you like these? What could recommend
this style to anyone? I can't say I like it very much.
--
Michael Shannon {ihnp4,hplabs}!oliveb!3comvax!mikes
More information about the Comp.lang.c
mailing list