gotos
Henry Spencer
henry at utzoo.uucp
Sun Apr 10 10:08:15 AEST 1988
> ... do you guys believe
> that superfluous flags and great big if-then statements are truly superior
> to the goto? ...
Well, speaking only for myself, I believe that thought and organization are
indeed truly superior to "hack it together somehow", and that the former
approach seldom leads to gotos or "superfluous flags and great big if-then
statements" -- or to the *desire* to use either. Don't confuse the symptoms
with the underlying disease. The desire to use a goto is not an awful sinful
thought that should be suppressed, it is a warning that you've goofed. The
proper response is not to kludge around it, but to stand back and re-think
the structure of the code. (In emergencies there may not be time for this,
of course, but many things can be excused in an emergency... provided that
you go back and clean up the mess afterward.)
--
"Noalias must go. This is | Henry Spencer @ U of Toronto Zoology
non-negotiable." --DMR | {allegra,ihnp4,decvax,utai}!utzoo!henry
More information about the Comp.lang.c
mailing list