Type inference with constrained types
Martin Odersky, Martin Sulzmann, Martin Wehr · Theory and Practice of Object Systems · 1999
We present a general framework HM(X) for type systems with constraints. The framework stays in the tradition of the Hindley/Milner type system. Its type system instances are sound under a standard untyped compositional semantics. We can give a generic type inference algorithm for HM(X) so that, under sufficient conditions on X, type inference will always compute the principal type of a term. We discuss instances of the framework that deal with polymorphic records, equational theories, and subtypes. © 1999 John Wiley & Sons, Inc.
Cited by 216 works. doi:10.1002/(sici)1096-9942(199901/03)5:1<35::aid-tapo4>3.0.co;2-4 Open-access PDF
Authors
References
- A Machine-Oriented Logic Based on the Resolution Principle
- A theory of type polymorphism in programming
- On understanding types, data abstraction, and polymorphism
- Principal type-schemes for functional programs
- Constraint logic programming: a survey
- Foundations of Deductive Databases and Logic Programming
- Coercion and type inference
- F-bounded polymorphism for object-oriented programming
- Three approaches to type structure
- Concurrent Constraint Programming