Hacker News new | ask | show | jobs
by hocuspocus 1327 days ago
> 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.

1 comments

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.