Hacker News new | past | comments | ask | show | jobs | submit login

It's not about just being more expressive. See the Brian Goetz quote. A more "functional style of programming", this means less mutation, more pure functions, e.g. Java's proposed records are immutable.



Minor nitpick: Records have been delivered in Java 16. Java 19 will also include the first preview for Record Patterns.


In 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: