gotos
Clayton Cramer
cramer at optilink.UUCP
Sat Apr 9 03:16:36 AEST 1988
> > Sometimes, gotos are perfectly justifiable because they vastly
> > simplify and clarify you code.
>
> And once in a long while, there is no better way. A loooong while.
> If I were running a software house, I'd be tempted to say that using
> a goto -- except in fixing a program that already uses them -- means
> having $50 docked from your pay. It's not *forbidden*, you understand,
> it's just that you have to want it really badly!
> --
> "Noalias must go. This is | Henry Spencer @ U of Toronto Zoology
> non-negotiable." --DMR | {allegra,ihnp4,decvax,utai}!utzoo!henry
Exactly the right approach. The last project I supervised, the engineers
that worked for me would occasionally try to justify a goto. Every single
time, I demonstrated that the worst they were out was an automatic variable
and maybe a do...while construct -- usually the do...while loop and an
appropriate automatic variable were already there.
I accept the remote possibility that goto might be appropriate somewhere --
just as I accept the remote possibility that leprechauns exist, and we've
just never found them.
Clayton E. Cramer
More information about the Comp.lang.c
mailing list