IF-THEN-ELSE considered harmful

  • Authors:
  • Gerald M. Weinberg;Dennis P. Geller;Thomas W. S. Plum

  • Affiliations:
  • State University of New York, Binghamton, New York;State University of New York, Binghamton, New York;State University of New York, Binghamton, New York

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1975

Quantified Score

Hi-index 0.00

Visualization

Abstract

Although the if-then-else construct for flow of control is simple in some senses, and certainly superior to unrestricted GO TO logic, the indefinite replication of this structure leads to undesireable program constructs. Other, more extensible control structures may be added to programming languages, while regulating the unrestricted use of if-then-else, in such a way as to reduce the complexity of programs.