skip to main content
article
Free access

IF-THEN-ELSE considered harmful

Published: 01 August 1975 Publication History

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.

References

[1]
Miller, George A., "The Magical Number Seven, Plus-or-minus Two: Some Limits on our Capacity for Processing Information", Psychological Review, 63, No. 2, March 1956
[2]
Wason, P. C. and P. N. Johnson-Laird, Psychology of Reasoning: Structure and Content, Cambridge, Mass.: Harvard U. Press, 1972
[3]
Dijkstra, Edsger, "GO TO statement considered harmful", Letter to the Editor, CACM, 11, 3, March 1968
[4]
Weinberg, G. M., M. Goetz, S. Wright, and R. Kaufmann, High Level COBOL Programming, in press
[5]
Plum, Thomas W-S., "Fooling the User of a Programming Language", submitted to 1975 Conference on Reliable Software
[6]
Weinberg, G. M., Dennis P. Geller, and Thomas W-S. Plum, "DO WHILE Considered Harmful", in preparation
[7]
Weinberg, G. M., PL/I Programming: A Manual of Style, New York: McGraw-Hill, 1970

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGPLAN Notices
ACM SIGPLAN Notices  Volume 10, Issue 8
August 1975
36 pages
ISSN:0362-1340
EISSN:1558-1160
DOI:10.1145/956028
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 August 1975
Published in SIGPLAN Volume 10, Issue 8

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)305
  • Downloads (Last 6 weeks)130
Reflects downloads up to 16 Oct 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media