The five steps
- Types as trees 8 min
- Bind the generics 9 min
- Tuples, nested 10 min
- Read them back 10 min
- Twenty thousand deep 11 min
The type checker for a toy language: build types as trees, print them, infer the return type of a call by binding its generics, and keep it working on types nested twenty thousand deep.