Hacker News new | ask | show | jobs
by akkad33 530 days ago
What feature do you use Kotlin for that does not exist in modern Java (21+)?
1 comments

Complete by-default null safety is a big point, extension functions are just nice, smart casts, proper data classes and operator overloading, and simple expressive functional stuff like range syntax and reified generic types for inline functions. In general the Kotlin language feels more usable, yet less bloated (wrt the actual code, not the features ofc).
Those are actually very good features. I guess null safety will come to Java with project Valhalla.