4 ms·
Discriminated unions are a terrible way to enforce type safety. They are a backport of a physical-data-modelling antipattern. Inheritance or GTFO.
by FrankWilhoit 1y ago
Discriminated unions are a terrible way to enforce type safety. They are a backport of a physical-data-modelling antipattern. Inheritance or GTFO.