Hacker News new | ask | show | jobs
by AndreasHae 1013 days ago
Kotlin ticks all of your boxes, plus you benefit from the vast ecosystem of the JVM.
1 comments

It's unfortunate that Kotlin lacks pattern matching, especially now that Java has it. I can only hope that the release of the new compiler will spur further language features.
What kinds of pattern matching that Java now has is Kotlin missing?
At the moment Kotlin only has smart casts and exhaustive type checking (e.g., making sure you didn't forget a switch case). It doesn't let you destructure records, add guards to cases, etc.

https://www.infoq.com/articles/pattern-matching-for-switch/