Chapter 4: Structs, Enums, Pattern Matching & Algebraic Data Types
Modeling domain invariants so illegal states cannot be represented: structs, newtypes, tagged-union enums, exhaustive `match`, `let ... else`, and niche optimization.
Modeling domain invariants so illegal states cannot be represented: structs, newtypes, tagged-union enums, exhaustive `match`, `let ... else`, and niche optimization.