Part 3 – Unions & Discriminated Unions
This is a series of posts I’m writing about using types as another tool in software development, Continuous Delivery, & keeping LLM’s honest. They’re also a design & refactoring tool, a communication tool, and reduce how many tests you have to write.
Parts:
Branded types allow us to differentiate between things & Product Types what things belong together. Unions/Discriminated Unions help us narrow things, identifying “what things are allowed?”





