News for hackers. Stuff that matters.
Re:The Kotlin Foundation by dbsmith83 on Saturday February 13, 2021 @02:07PM (#26125819)
It's way more than terse classes. The syntax everywhere is cleaner. Higher order functions look so much nicer. Using val/var is superior to having to remember to write 'final' all the time. Kotlin also handles nullability way better. Ah, also, default arguments for constructors/methods. These features prevent a lot of developer mistakes, and thus better code is often achieved.

Also, Kotlin usually forges ahead on features, and the Java is playing catch up. Take data classes for instance. If anything it seems like Kotlin gave Java a good kick in the pants to get it to start developing faster and adding modern language features.

Re:The Kotlin Foundation by pjmlp on Sunday February 14, 2021 @03:25AM (#26130581)
Java and JVM are developed together, Kotlin just adds syntax sugar on top.

If Kotlin is so much better, why doesn't JetBrains just port everything into Kotlin/Native?

Re:The Kotlin Foundation by dbsmith83 on Sunday February 14, 2021 @10:27AM (#26133131)
Because there are benefits to the JVM and interoperability with Java
Re:The Kotlin Foundation by pjmlp on Sunday February 14, 2021 @04:32PM (#26136464)
Apparently not, given the cargo cult hate against Java on Kotlin community, glad to "leave Java behind".