Parse, don't validate

Input is checked once, at the boundary, into a type that keeps what was checked, so the rest of the program never meets an invalid value.

Named by Alexis King.

Themes: Types and contracts

With an agent: Computational sensor, in Böckeler's grid.

Sources

+ Propose a practice