3 ms·
The impedance mismatch with its intended target (mainly Java) is enough to make Kotlin a complete waste of time.
by ChicagoDave 10y ago
The impedance mismatch with its intended target (mainly Java) is enough to make Kotlin a complete waste of time.
- norswap 10y agoHow so? In my experience Kotlin works nicely with Java.
- ChicagoDave 10y agoI found it easier to just write Java.
- gigatexal 10y agoThis. But competition is good. And here's to Java 9 and eventually 10 and ...
- pjmlp 10y agoOn Android is the only sane path out of the Android Java fork, stale in Java 6, with cherry picked features from Java 7 and 8.
- kcorbitt 10y agoThis is a reasonable critique of other JVM-hosted languages I've worked with (Clojure and JRuby), but the external interface of classes and methods in Kotlin are completely compatible with Java by design. And in practice, it's very easy to write mixed Java/Kotlin projects where you don't necessarily know (or care) whether the class you just imported was written in one or the other -- it just works how you'd expect. I'd be interested in specific examples where you found any impedance mismatch at all.
- didibus 10y agoMaybe the closer similarity leads to more confusion and mix up. Clojure works pretty well with Java, but is so different, you'll rarely get things mixed up between the two. Just a guess, since I'm not the original commenter.