Member-only story
A Brief History of the Semicolon in Programming
Where did semicolon usage come from anyway?
In this article, I’m going to provide a brief history of the use of the semicolon (the bane of many an introductory computer science student) in computer programming languages. We’ll see semicolons have two uses: as statement separators and as statement terminators, and we’ll see how the use of semicolons has changed over the past 60 years or so of programming language history.
Before I start, though, let me attribute the quote that makes up the subtitle of this article. This quote is attributed to one of the true pioneers of computer science, Alan Perlis. I found this quote in one of the great computer science textbooks of all times, “The Structure and Interpretation of Computer Programs,” by Hal Abelson and Gerald Jay Sussman.
The quote is found in a footnote on page 11 of the book. In the footnote, the authors are discussing the lack of special syntactic forms found in many programming languages but not found in Lisp-like languages, such as Scheme (the target language of the book).
The term syntactic sugar was originally coined by Peter Landin to refer to convenient syntactic features that can be written in more uniform ways, such as the use of parentheses in Lisp rather than all the different syntactic features…