Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
FrankWilhoit
5 months ago
|
parent
|
context
|
favorite
| on:
Want Discriminated Unions in Kotlin? Use a Sealed ...
Discriminated unions are a
terrible
way to enforce type safety. They are a backport of a physical-data-modelling antipattern. Inheritance or GTFO.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: