|
|
|
|
|
by mike_hearn
3880 days ago
|
|
Right, but by "interop" I didn't just mean the ability to call into Java code and vice-versa, although I admit that's the traditional definition. Scala can do that too. What I meant is, Kotlin raised the bar in the interop department to new heights: it uses the same collection types, so there's no conversion between Java and some other SDK, but still manages to enhance them via compiler magic and extensions. It has an auto-converter tool so nobody has to waste time rewriting code that already works in order to use the new features. It can use annotation processors, etc. Of course it also pays a fairly steep price to get that. |
|
The thing is that Scala tried to do that for years, and after years of battling subtle, leaky abstractions, they picked a different design.
It feels like Kotlin designers are completely unaware of what other languages tried and keep repeating all the mistakes ...