Make illegal states unrepresentable
Types are shaped so that a state the program must never reach cannot be written, and the compiler refuses it.
Named by Yaron Minsky.
Themes: Types and contracts
With an agent: Inferential guide, Computational sensor, in Böckeler's grid.
Sources
- Effective ML Revisited, Yaron Minsky, 2011, Jane Street Tech Blog.