|
|
|
|
|
by kibwen
4261 days ago
|
|
It wasn't strictly HM, as it had extensions for the subtyping that lifetimes require. It was based on HM, however. The new bespoke scheme gives approximately the same results as HM but is drastically simpler. For all I know this could inhibit Rust's future ability to do even more powerful things with types, but AIUI this scheme has the advantage of being actually decidable given the extensions to HM that we would require in the current language. I ain't a type theorist though, so take this as hearsay. :) |
|
I'm curious (and a bit skeptical) of your claim that the scheme is "drastically simpler" than HM. HM is a beautifully simple design, which can be expressed (abstractly) in just a couple of lines.