Hacker News new | ask | show | jobs
by dima_vm 1327 days ago
As for me the greatest appeal of Kotlin is that it doesn't need its own tooling that bad, it feels like just syntactic sugar over Java.

Both Scala and Kotlin can reuse Java tools, but with Scala it's awkward (and some tricky generics simply don't compile with Scala).

E.g. if I need to parse something, I search for "how to parse that in Java", not "... in Kotlin".

1 comments

> and some tricky generics simply don't compile with Scala

What? Do you have any example that wasn't fixed years ago?

Any non-trivial Scala app will consume dozens if not hundreds of Java libraries, without any issue.

I filed an issue for Scala in 2009, that was answered like "sorry, this particular Java code cannot be used in Scala". In 2012 it still wasn't fixed.

I cannot find the issue now, but I remember I was trying to use gae-mapreduce-java library (built on top of Hadoop interfaces). It couldn't compile with Scala.

That's eons ago in Scala world. If you can, give it another try.

I would assume such a bug was fixed in Scala 2.x given the prevalence of the language in the hadoop ecosystem and big data frameworks.

Moreover Scala 3, was the opportunity to fix many previously-unfixable corner cases.