4 ms·
Kotlin started out as a better Java but it's more than that now. With Kotlin multiplatform you can compile to JVM, Javascript and Native from the same repositor
by zorr 5y ago
Kotlin started out as a better Java but it's more than that now. With Kotlin multiplatform you can compile to JVM, Javascript and Native from the same repository.
Java has been catching up on language features but I'm not sure if I'm ready to switch back to Java for Spring projects yet. Mostly because of nullability, extension methods and coroutines in Kotlin.
- kaba0 5y agoTargeting all those platforms will result in Kotlin falling in-between all of them. It will not be truly close the the JVM primitives, or the native ones or both in the end and will suffer from platform-specific quirks. Especially with the heavy, under-the-hood developments of the JVM, like Loom and Valhalla.
- hocuspocus 5y agoTargeting multiple platforms is orthogonal to the core language design goal, which has always been to be more like C# on the JVM, with 100% Java interop and no need for a big standard library. I give you nullability, however extension methods without proper typeclasses is just syntactic sugar, and coroutines will be superseded by Loom. Java hasn't only been catching up, it now supports pattern matching which Kotlin still lacks.