Abstract
We present a unified approach to type inference in the presence of overloading and coercions based on the concept of
constrained types
. We define a generic inference system, show that subtyping and overloading can be treated as a special instance of this system and develop a simple algorithm to compute principal types. We prove the decidability of type inference for the class of
decomposable predicates
and develop a canonical representation for principal types based on
most accurate simplifications
of constraint sets. Finally, we investigate the extension of our techniques to
recursive types
.
Publisher
Association for Computing Machinery (ACM)
Reference22 articles.
1. Subtyping recursive types
2. Fundamental properties of infinite trees
3. Principal type-schemes for functional programs
4. Functional Programming
Languages
and
Computer
Architecture 5th
A CM
Con/erence volume
523
of
Lecture Notes in Computer Science Cambridge Massachusetts August
1991
.
Springer-Verlag
. Functional Programming Languages and Computer Architecture 5th A CM Con/erence volume 523 of Lecture Notes in Computer Science Cambridge Massachusetts August 1991. Springer-Verlag.
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Type Inference for C;ACM Transactions on Programming Languages and Systems;2020-12
2. Polymorphic subtyping in O'Haskell;Science of Computer Programming;2002-05
3. Objects + Views = Components?;Lecture Notes in Computer Science;2000
4. Type Inference for Recursively Constrained Types and its Application to OOP;Electronic Notes in Theoretical Computer Science;1995
5. Specifying Type Systems with Multi-Level Order-Sorted Algebra;Algebraic Methodology and Software Technology (AMAST’93);1994