|
|
|
|
|
by wtetzner
3315 days ago
|
|
> Type inference has its shares of issues once you're dealing with non-local type inference, subtype polymorphism or parametric polymorphism. Just wanted to point out that actually, type inference works quite well with parametric polymorphism, like in ML. Even non-local type inference can work fine given other constraints, also like in ML. |
|
2. I wouldn't say that it's without problems even for unconstrained parametric polymorphism. Consider the value restriction [1] and the fact that if you add subtyping to the mix (as in OCaml), you're getting some really non-trivial issues (as Scala found out the hard way).
[1] http://mlton.org/ValueRestriction