6 ms·
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
by pcwalton 12y ago
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.