The final word on GOTO (Don't I wis

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Tue Sep 26 22:19:16 AEST 1989


In article <4208 at cbnewsh.ATT.COM>, ijk at cbnewsh.ATT.COM (ihor.j.kinal) writes:

|  Well, what if it took the NEXT poor programmer who maintains  that
|  program an extra week to understand what it does ???  Or even
|  an extra minute ??? [each and every time it was examined - it might
|  add up to a lot].

  It depends on what you use instead of the goto. If you compare a goto
against setting a flag variable and testing it to break out of three
levels of loop, the goto is certainly easier to understand, particularly
if the loops have a lot of code. If you use a goto where a break would
do it makes the code more subject to error (you can now mess up
placement of the goto or the label).
-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon



More information about the Comp.lang.c mailing list