Re:Java 23: The New Features Are Officially Announced
by ldjkfkdsjnv on Wednesday April 17, 2024 @08:06AM
(#40063430)
Java pulls in the best language features from kotlin and scala, which reduces the edge of using those languages
[ Parent
| on HN ]
Re:Java 23: The New Features Are Officially Announced
by hocuspocus on Wednesday April 17, 2024 @09:02AM
(#40064015)
This is an overly simplistic take.
Java hasn't taken that much from Kotlin really, sometimes even gone in a completely opposite direction (for instance with Loom).
Java has taken a few things from Scala but I would hardly call them the best features. Java will never adopt what truly makes Scala stand out, on purpose.
Re:Java 23: The New Features Are Officially Announced
by matsemann on Wednesday April 17, 2024 @09:07AM
(#40064049)
While java has evolved a lot, I still find it hard to go back. The stream syntax and similar things will never match how easy it is to do proper functional programming in Kotlin. I do miss real pattern matching, though.