Comment

Comment by kubb

Actually it's not completely true, in Java 17, the switch statement will be able to "match" a class name, and with sealed + permits and records you can have something like algebraic data types.

Still, seems like no destructuring records, but maybe it's not strictly necessary.

parent kubb 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton