𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Type inference with constrained types

✍ Scribed by Odersky, Martin; Sulzmann, Martin; Wehr, Martin


Book ID
101223356
Publisher
John Wiley and Sons
Year
1999
Tongue
English
Weight
219 KB
Volume
5
Category
Article
ISSN
1074-3227

No coin nor oath required. For personal study only.

✦ Synopsis


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.


πŸ“œ SIMILAR VOLUMES


Type Inference for Variant Object Types
✍ Michele Bugliesi; Santiago M. PericΓ‘s-Geertsen πŸ“‚ Article πŸ“… 2002 πŸ› Elsevier Science 🌐 English βš– 236 KB
Visual type inference
✍ Martin Erwig πŸ“‚ Article πŸ“… 2006 πŸ› Elsevier Science 🌐 English βš– 723 KB
Type inference against races
✍ Cormac Flanagan; Stephen N. Freund πŸ“‚ Article πŸ“… 2007 πŸ› Elsevier Science 🌐 English βš– 436 KB

The race condition checker rccjava uses a formal type system to statically identify potential race conditions in concurrent Java programs, but it requires programmer-supplied type annotations. This paper describes a type inference algorithm for rccjava. Due to the interaction of parameterized classe