4 ms·
Anyone interested in the structured programming vs. goto debate should also read Knuth's "Structured Programming with Goto": http://pplab.snu.ac.kr/courses/adv
by mbrubeck 15y ago
Anyone interested in the structured programming vs. goto debate should also read Knuth's "Structured Programming with Goto":
http://pplab.snu.ac.kr/courses/adv_pl05/papers/p261-knuth.pdf http://pplab.snu.ac.kr/courses/adv_pl05/papers/p261-knuth.pd...
Among many other things, it explains how eliminating goto removes certain useful optimizations. In fact, I think it's hard even to think of some of the constructs that Knuth uses if you are only practiced in goto-less programming.
- jff 15y agoIf you want to go somewhere, goto is the best way to get there. K Thompson
- andolanra 15y ago"Please don't fall into the trap of believing that I am terribly dogmatical about [the goto statement]. I have the uncomfortable feeling that others are making a religion out of it, as if the conceptual problems of programming could be solved by a single trick, by a simple form of coding discipline!" —Edsger Dijkstra