2 ms·
I can only speak for Scala: it's doing "pretty well", but in some aspects it's not doing as well as it could, were it a purely functional language. Scala has a
by the_af 12y ago
I can only speak for Scala: it's doing "pretty well", but in some aspects it's not doing as well as it could, were it a purely functional language.
Scala has a lot going for it, not the least its interoperability with Java. But being a hybrid language is not zero-cost: its type inference for example is less powerful than Haskell's (it can infer fewer things; I've read this is because inheritance complicates things), and to me its type signatures are harder to read. Also, because pretty much every Scala function has "purity escape hatches" built-in, you can never be sure what does or doesn't have side-effects. And this is unrelated to purity, but Scala's null makes me sad.
- tel 12y agoThe weakness of type inference arises, as you note, due to subtype polymorphism. You can't escape from this when you've got class-based OO, it seems.