The type and effect discipline
The type and effect discipline
复制标题
DOI:
10.1109/lics.1992.185530
复制
发表时间:
1992-06
期刊:
影响因子:
--
通讯作者:
J. Talpin;P. Jouvelot
中科院分区:
文献类型:
--
作者:
J. Talpin;P. Jouvelot
The type and effect discipline, a framework for reconstructing the principal type and the minimal effect of expressions in implicitly typed polymorphic functional languages that support imperative constructs, is introduced. The type and effect discipline outperforms other polymorphic type systems. Just as types abstract collections of concrete values, effects denote imperative operations on regions. Regions abstract sets of possibly aliased memory locations. Effects are used to control type generalization in the presence of imperative constructs while regions delimit observable side effects. The observable effects of an expression range over the regions that are free in its type environment and its type; effects related to local data structures can be discarded during type reconstruction. The type of an expression can be generalized with respect to the variables that are not free in the type environment or in the observable effect.>