What Made Lisp Different

December 2001 (rev. May 2002)

(This article came about in response to some questions on the LL1 mailing list. It is now incorporated in Revenge of the Nerds.)

McCarthy's Lisp departed radically from the Fortran-dominated programming world of the late 1950s. Its historical originality is clear. The practical question for later programmers is different: which advantages remain distinctive after useful ideas spread beyond the language that introduced them?

Consider the nine ideas in that light, separating their origins from their present value:


1. Conditionals. An if-then-else construct now seems ordinary. McCarthy developed it while designing Lisp, and helped bring it into Algol, from which it spread. Fortran's conditional goto closely followed hardware branches. This history establishes a contribution to programming, but widespread adoption removes it as a reason to prefer Lisp over another language that supplies it.

2. A function type. Lisp treats functions as first-class values: representable directly, stored in variables, and passed as arguments. That is a valuable capability. Once several tools provide it, the choice shifts to their implementations, libraries, and conventions rather than their ancestry.

3. Recursion. Lisp brought the preexisting mathematical concept into programming-language support. Its lasting success is visible when a programmer can use recursion without selecting Lisp. An idea can win more widely than its original vehicle.

4. A new concept of variables. Lisp variables effectively refer to values; binding copies the reference rather than the referred object. Values have types. This supplies flexibility, but programmers must still reason about sharing, mutation, and mistakes. The representation doesn't settle those engineering questions.

Parentheses are cheap. The expensive part is explaining to a new colleague why they should stop counting them. [confirmed by another essay]

5. Garbage-collection. Automatic reclamation matters enormously. Compare the collectors and operational guarantees available for the task, rather than counting the feature only for its originator.

6. Programs composed of expressions. Lisp programs consist of expression trees returning values, sometimes multiple values. Fortran and many successors distinguish expressions from statements. Expression composition can simplify a program, but the resulting code must still be easy for a team to inspect.

Fortran's line-oriented punched-card input helps explain its original distinction. Without nested statements there was little use for a statement's returned value. Explaining the historical constraint does not by itself demonstrate that every later separation of expressions and statements is equally pointless.

Block structure removed that initial limitation, while the distinction persisted through Algol and its descendants. Persistence can reflect habit, but shared habits also make unfamiliar code readable. A replacement should be judged on the improvement it delivers after migration and learning costs.

Expression-oriented design allows both of the following in Arc. The choice illustrates flexibility; readability determines whether using that flexibility helps:

(if foo (= x 1) (= x 2))

or, assigning the value of the conditional,

(= x (if foo 1 2))

7. A symbol type. Symbols permit equality tests through pointer comparison. The useful comparison is with the identity and interning mechanisms of the alternatives, rather than with strings alone.

8. A notation for code using trees of symbols. This supports manipulation of programs, while making representation conventions a responsibility shared by every maintainer.

9. The whole language always available. Code can run during reading or compilation, and reading and compilation can happen at runtime. That power crosses boundaries other systems deliberately preserve. It can help extension, but can also make behavior depend on more phases than a reader expects.

Read-time execution permits syntax changes; compile-time execution supports macros; runtime compilation supports extension systems such as Emacs; runtime reading supports communication through s-expressions. XML later pursued structured interchange too. These are useful mechanisms, with different tradeoffs. Their availability doesn't guarantee that unrestricted use makes a project safer to change.


The hardware and habits of the late 1950s made these ideas extraordinary. Historical distance should make us appreciate the contribution while resisting the assumption that its original contrast remains the right comparison today.

As described in the original 2001–02 account, ideas 1–5 had become widespread, expression-based constructs were spreading, and Python offered a form of symbol identity. Code represented as symbolic trees, combined with phase flexibility, remained the central Lisp macro advantage. The practical question is whether that remaining advantage serves this project better than competing ecosystems do. Partial adoption can be sensible selection, rather than incomplete progress toward an inevitable Lisp endpoint.

Lisp emerged from an attempt to axiomatize computation, rather than merely repair Fortran. That origin explains its coherence. It cannot determine the best tool for every later task. Honor the discovery by using its ideas where they work, including in systems that absorbed them and made them ordinary infrastructure.




Japanese Translation