Guarded recursive datatype constructors
Hongwei Xi, Chiyan Chen, Gang Chen · ACM SIGPLAN Notices · 2003
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.
Cited by 41 works. doi:10.1145/640128.604150
Authors
References
- Smalltalk-80: The Language and its Implementation
- A formulation of the simple theory of types
- Dependent types in practical programming
- Cambridge University Press, 1696–1712
- Unboxed objects and polymorphic typing
- Compiling polymorphism using intensional type analysis
- Guarded recursive datatype constructors
- MetaML and multi-stage programming with explicit annotations
- A modal analysis of staged computation
- Intensional polymorphism in type-erasure semantics