Skip to content
CONTACT

Wadler's Law

PROGRAMMING AND BUGS

In designing a language, the time spent discussing a feature grows as you move from semantics to syntax, then to lexical syntax, down to comments, which beat everything.

— Philip Wadler, Messages on the Haskell mailing list, 1992 and 1996
VIDEO.EXE16:9

The deep meaning of a language? Five minutes, everyone agrees. The symbol for comments? Three weeks, two schisms and a fork. The smaller the question, the more everyone feels like an expert.

It's the programmers' version of a universal human rule: on difficult things people stay silent, on easy ones they go to war. Anyone who has taken part in a code review has seen fifty comments about spaces and none about the logic.

In our team we argued at length over tabs or spaces. We set up a committee. The committee produced a document. The document was indented with a mixture of both. Now the committee has a subcommittee. The project is progressing, in the comments.