|
|
|
|
|
by zzalpha
3319 days ago
|
|
But it doesn't seem better enough to force old Java dogs to care for new tricks. Don't count on that. I'm an old dog when it comes to Java. But I decided to give Kotlin a try on a little pet project of mine. JetBrains are mad geniuses. In Intellij, with a hotkey you can convert Java to Kotlin. A couple of Alt-Enters and you have something almost idiomatic. I converted the entire (small) project in an hour and then spent a bunch of time reworking parts to take advantage of Kotlin's functional features. And I could convert incrementally and test each migration because the Java interop is absolutely seamless. They've completely eliminated the risk and friction of trying the language out. I even found a bug along the way due to Kotlin's null checker. It's brilliant! JetBrains gets it. They produced a language that's new yet familiar (sorry Clojure), powerful yet still easy to understand (sorry Scala), and has essentially zero barrier to entry due to interop and tooling support. |
|
The same works for Scala.
> powerful yet still easy to understand (sorry Scala)
Kotlin is way less powerful than Scala. And if you dumb down Scala to Kotlin level by just not using the more advanced features (it is easy to turn them off globally), you're basically writing Kotlin. I can't see how Scala is less readable then - the differences are really cosmetic.