|
|
|
|
|
by lolinder
1315 days ago
|
|
> I would say that in the long run it's Kotlin that's "in danger" as Java becomes more and more a "better Java" itself. There is not much stuff left in Kotlin these days (besides the nicer syntax) that is still missing in Java. And it gets less with every Java release. As Kotlin, mostly "just a better Java", has not much to offer besides some syntax sugar it will have a hard stand against a future Java, imho. There are two things that I miss any time I try to go back to Java from Kotlin, and recent improvements haven't helped matters: 1) Null safety. Java has Optional now, but most of the standard library still may or may not return null, and you have to read the javadoc to find out if you should be handling for null. 2) The collections library. Kotlin has the most comprehensive and consistent collections library I've ever seen in any statically typed language; it's comparable to Python in expressive power. Java doesn't even come close. The features that Java has adopted (sealed interfaces, records, etc) are nice, but not the core of why I use Kotlin. |
|