4 ms·
It's maybe even wrong of me to lump Ceylon and Kotlin together. Kotlin definitely is richer (and closer to Scala in features) and can also compile to JavaScript
by DCKing 12y ago
It's maybe even wrong of me to lump Ceylon and Kotlin together. Kotlin definitely is richer (and closer to Scala in features) and can also compile to JavaScript, which puts it in a different boat.
As a straight and immediate Java replacement, I'd definitely recommend Kotlin as well. If you want to switch over existing Spring apps, you will not get the best out of Scala. Scala, in my experience, is most effective when written without Java goggles on. But Scala definitely has large advantages for new projects or broad refactorings.
- lmm 12y agoCeylon also targets compile-to-javascript. (I thought Kotlin kept the standard Java library - have they compiled a version of that for javascript or what?)
- pron 12y agoI'm not sure about Kotlin's plans re Javascript standard libraries, but I guess the approach is similar to Clojure, i.e. being a "hosted language" aimed at easy integration with the host environment (plus a very basic "common" standard library).
- lmm 12y agoIf anything that makes it less reliable for compile-to-javascript than Ceylon, no? (AIUI Ceylon abandons the Java standard library in favour of its own, partly so that you have the same standard library for either target).