Sound polymorphic type inference for objects
Jonathan Eifrig, Scott F. Smith, Valery Trifonov · ACM SIGPLAN Notices · 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 14 works. doi:10.1145/217839.217858 Open-access PDF
Authors
References
- Lecture Notes in Computer Science 1205
- A theory of type polymorphism in programming
- A semantics of multiple inheritance
- Coercion and type inference
- F-bounded polymorphism for object-oriented programming
- Three approaches to type structure
- Inheritance is not subtyping
- Type inference for polymorphic references
- Type inclusion constraints and type inference
- Precise concrete type inference for object-oriented languages