A case against the GOTO

  • Authors:
  • William A. Wulf

  • Affiliations:
  • Carnegie-Mellon University

  • Venue:
  • ACM SIGPLAN Notices - Special issue on control structures in programming languages
  • Year:
  • 1972

Quantified Score

Hi-index 0.00

Visualization

Abstract

It has been proposed, by E. W. Dijkstra and others, that the goto statement in programming langauge is a principal culprit in programs which are difficult to understand, modify, and debug. More correctly, the argument is that it is possible to use the goto to synthesize program structures with these undesirable properties. Not all uses of the goto are to be considered harmful; however, it is further argued that the "good" uses of the goto fall into one of a small number of specific cases which may be handled by specific language constructs. This paper summarizes the arguments in favor of eliminating the goto statement and some of the theoretical and practical implications of the proposal.