3 ms·
(Modern) java has ADTs. Sealed classes as sum types and records as product types. Full-blown pattern matching with destructors is coming.
by kaba0 5y ago
(Modern) java has ADTs. Sealed classes as sum types and records as product types.
Full-blown pattern matching with destructors is coming.
- scns 5y agoThat is good to hear. How long will it take till developers, working in shops that contemplate their migration to Java 11, can use it? No snark intended.
- kaba0 5y agoJava has a huge user-base. Some will use it sooner, others will continue to use 8 for decades to come.
- vips7L 5y agoThis is a good question. From my observations, it feels like half the community is just following the "LTS" releases (11, and 17 next month). And then the other 50% is split between chasing the current release and forever being stuck on 8. It's really sad because JDK 8 really is an antiquated runtime. You're doing a disservice to your developers, users, and your $$ if you're still running it.