3 ms·
Minor nitpick: Records have been delivered in Java 16. Java 19 will also include the first preview for Record Patterns.
by samus 4y ago
Minor nitpick: Records have been delivered in Java 16. Java 19 will also include the first preview for Record Patterns.
- PaulHoule 4y agoIn general Java has picked up many features of the ML family of languages such as pattern matching, sealed classes, etc. It is so much fun to write compilers in Java using this stuff. I code a lot of Python also, and I've been pleased to see pattern matching adding to Python by a process that seemed very similar to that in Java, that is, in both cases the feature was developed gradually with a lot of care to make sure it works well with the rest of the language.