[TUHS] I can't drive 55: "GOTO considered harmful" 55th anniversary

arnold at skeeve.com arnold at skeeve.com
Fri Mar 10 21:59:21 AEST 2023


Ralph Corderoy <ralph at inputplus.co.uk> wrote:

> > Remember too that the C compiler had to fit in a small space; having
> > multilevel or labelled breaks requires more bookkeeping.
>
> Is it more bookkeeping than is already needed to handle the ends of the
> nested for-loops, say?

Yes, since you have to keep track of a label in a table somewhere
that you can look up. Is it *that* much more that the PDP-11 C compiler
could not have handled it? I don't know.

Arnold


More information about the TUHS mailing list