11 ms·
Kotlin ticks all of your boxes, plus you benefit from the vast ecosystem of the JVM.
by AndreasHae 3y ago
Kotlin ticks all of your boxes, plus you benefit from the vast ecosystem of the JVM.
- richbell 3y agoIt'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.
- simonkagedal 3y agoWhat kinds of pattern matching that Java now has is Kotlin missing?
- richbell 3y agoAt 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/ https://www.infoq.com/articles/pattern-matching-for-switch/