M4 · Type-level programming
Use case
Section titled “Use case”Relay’s HTTP layer and config get types computed from other types and from strings: route params from "/hooks/:source/:id", handler maps derived from the event union, deep-readonly config with deep-partial overrides, and branded ids that can’t be mixed up. You write the kind of type-level code libraries are made of, and learn when not to.