The very first sentence was: > There is more to Hindley-Milner type inference than the Algorithm W.
I guess congratulations to the author for knowing the audience well enough
The very first sentence was: > There is more to Hindley-Milner type inference than the Algorithm W.
I guess congratulations to the author for knowing the audience well enough
So, in fact, it's actually never algorithm W in non-toy languages. ;)
Side note: this article is originally from 2013 and is considered a must-read by any would-be hackers trying to modify the OCaml typechecker (it's cited in the documentation).
https://en.m.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_...
> As it stands, W is hardly an efficient algorithm; substitutions are applied too often. It was formulated to aid the proof of soundness. We now present a simpler algorithm J which simulates W in a precise sense.
I'm actually a bit surprised that it took so long to discover these formulations of unification. I wonder what Prolog systems were doing at the time, given the importance of efficient unification.