Sound polymorphic type inference for objects
Jonathan Eifrig, Scott F. Smith, Valery Trifonov · Conference on Object-Oriented Programming Systems, Languages, and Applications · 1995
A polymorphic, constraint-based type inference algorithm for an object-oriented language is defined. A generalized form of type, polymorphic recursively constrained types, are inferred. These types are expressive enough for typing objects, since they generalize recursive types and F-bounded polymorphism. The well-known tradeoff between inheritance and subtyping is mitigated by the type inference mechanism. Soundness and completeness of type inference are established.
Cited by 105 works. doi:10.1145/217838.217858 Open-access PDF
Authors
References
- Lecture Notes in Computer Science 1205
- A theory of type polymorphism in programming
- The Definition of Standard ML
- A semantics of multiple inheritance
- Coercion and type inference
- Complete Type Inference for Simple Objects
- F-bounded polymorphism for object-oriented programming
- Three approaches to type structure
- Inheritance is not subtyping
- Type inference for polymorphic references