Polymorphic type inference and assignment
Polymorphic type inference and assignment
复制标题
多态类型推断和赋值
DOI:
--
复制
发表时间:
1991
期刊:
影响因子:
--
通讯作者:
P. Weis
中科院分区:
文献类型:
--
作者:
X. Leroy;P. Weis
We present a new approach to the polymorphic typing of data accepting in-place modiflcation in ML-like languages. This approach is based on restrictions over type generalization, and a reflned typing of functions. The type system given here leads to a better integration of imperative programming style with the purely applicative kernel of ML. In particular, generic functions that allocate mutable data can safely be given fully polymorphic types. We show the soundness of this type system, and give a type reconstruction algorithm.