#Compile-Time
2 notas · última:
A Mental Model to think in TypeScript
The post argues that developers already think in types, and TypeScript makes that mental model explicit with annotations, narrowing, structural typing, and tooling that catches errors before runtime.
Elixir Structs are maps with checks and default values
Structs are built on top of maps, give default values, and add compile-time checks. They can enforce required keys, reject invalid keys, and still be pattern-matched by struct type.
