3 ms·
> It has an incredibly powerful Hindley Milner system under the hood. Scala does not use Hindley-Milner, which is why it has much poorer type inference compare
by willtim 6y ago
> It has an incredibly powerful Hindley Milner system under the hood.
Scala does not use Hindley-Milner, which is why it has much poorer type inference compared to Haskell or OCaml. It uses subtyping to encode sum types and under many circumstances will infer "Any" for a type.
- tombert 6y agoYou are absolutely correct, I stand corrected!