Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
PaulHoule
62 days ago
|
parent
|
context
|
favorite
| on:
The Grug Brained Developer (2022)
Currently Java supports records (finalized in JDK 16) and sealed classes (JDK 17) which together work as algebraic data types; pattern matching in switch was finalized in JDK 21. The syntax is pretty sweet
https://blog.scottlogic.com/2025/01/20/algebraic-data-types-...
tayo42
62 days ago
[–]
oh thats cool. thanks for sharing!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://blog.scottlogic.com/2025/01/20/algebraic-data-types-...