Hacker News new | ask | show | jobs
by paulddraper 3344 days ago
Scala had a CLR target for a number of years, but getting the type system to work was so problematic it was eventually abandoned.
2 comments

That's what I meant with: "That's largely an urban myth."
I'm curious in what sense it was difficult to get it to work.
Perhaps not the best explanation but this the gist, as given by Scala's creator in an interview https://youtu.be/p_GdT_tTV4M

> It's harder then it looks, because .NET has a very rich type system which happens to be not the Scala type system. In fact, it's very hard to map some of the parts of the Scala types like higher-kinded types...so it's a difficult task, much more difficult than JS or LLVM. LLVM is likely going to be the third target [after JVM and JS] because there we don't need to fight a type system which is foreign to us, which is what the .NET one is.