Guarded recursive datatype constructors
Guarded recursive datatype constructors
复制标题
受保护的递归数据类型构造函数
DOI:
10.1145/604131.604150
复制
发表时间:
2003
期刊:
影响因子:
--
通讯作者:
Gang Chen
中科院分区:
文献类型:
--
作者:
H. Xi;Chiyan Chen;Gang Chen
We introduce a notion of guarded recursive (g.r.) datatype constructors, generalizing the notion of recursive datatypes in functional programming languages such as ML and Haskell. We address both theoretical and practical issues resulted from this generalization. On one hand, we design a type system to formalize the notion of g.r. datatype constructors and then prove the soundness of the type system. On the other hand, we present some significant applications (e.g., implementing objects, implementing staged computation, etc.) of g.r. datatype constructors, arguing that g.r. datatype constructors can have far-reaching consequences in programming. The main contribution of the paper lies in the recognition and then the formalization of a programming notion that is of both theoretical interest and practical use.