Sciweavers

APLAS
2000
ACM

A Generalization of Hybrid Let-Polymorphic Type Inference Algorithms

14 years 4 months ago
A Generalization of Hybrid Let-Polymorphic Type Inference Algorithms
We present a generalized let-polymorphic type inference algorithm, prove that any of its instances is sound and complete with respect to the Hindley/Milner let-polymorphic type system, and find a condition on two instance algorithms so that one algorithm should find type errors earlier than the other. By instantiating the generalized algorithm with different parameters, we can achieve not only the two opposite algorithms (the bottom-up standard algorithm W and the top-down algorithm M) but also other hybrid algorithms which are used in real compilers. Such instances’ soundness and completeness follow automatically, and their relative earliness in detecting type-errors are determined by checking a simple condition. The set of instances of the generalized algorithm is a superset of those used in the two most popular ML compilers: SML/NJ and OCaml.
Oukseh Lee, Kwangkeun Yi
Added 01 Aug 2010
Updated 01 Aug 2010
Type Conference
Year 2000
Where APLAS
Authors Oukseh Lee, Kwangkeun Yi
Comments (0)