The final word on GOTO (Don't I wis

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Fri Sep 29 01:15:59 AEST 1989


In article <1017 at kim.misemi>, kim at kim.misemi (Kim Letkeman) writes:

|  If you keep your programs well structured, with *small* functions that
|  fan out smoothly from control level functions to low level (working)
|  functions, then this situation just doesn't arise. 

  Size and structure are not exclusive. A switch within two for loops
seems like a reasonable structure to me, but it can contain a lot of
cases. If the code for each case is small, say 1-2 statements each,
using a table lookup and procedure per case can add a lot of overhead,
and encourages pollution of global namespace to make variables
available.

  All big procedures are not badly structured, and efforts to keep the
lines per procedure down to some arbitrary limit cost time to write, to
run, and to maintain.

|  I apologize if this message has a pious tone.

  It certainly could be read that way...
-- 
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