Re:An Experimental New Type Inference Scheme for Rust
by pcwalton on Wednesday July 09, 2014 @11:26PM
(#8013438)
The article gives an example of a program that fails to typecheck, based on function variance.
Note that this algorithm is based on HM. You can't do plain old HM if you have subtyping; you have to do some algorithm based on it. This is just one of many possible algorithms.
Note that this algorithm is based on HM. You can't do plain old HM if you have subtyping; you have to do some algorithm based on it. This is just one of many possible algorithms.