Finite subtype inference with explicit polymorphism

Authors
Citation
D. Duggan, Finite subtype inference with explicit polymorphism, SCI COMP PR, 39(1), 2001, pp. 57-92
Citations number
29
Categorie Soggetti
Computer Science & Engineering
Journal title
SCIENCE OF COMPUTER PROGRAMMING
ISSN journal
01676423 → ACNP
Volume
39
Issue
1
Year of publication
2001
Pages
57 - 92
Database
ISI
SICI code
0167-6423(200101)39:1<57:FSIWEP>2.0.ZU;2-D
Abstract
Finite subtype inference occupies a middle ground between Hindley-Milner-ty pe inference (as in ML) and subtype inference with recursively constrained types. It refers to subtype inference where only finite types are allowed a s solutions. This approach avoids some open problems with general subtype i nference, and has practical motivation where recursively constrained types are not appropriate. This paper presents algorithms for finite subtype infe rence, including checking for entailment of inferred types against explicit ly declared polymorphic types. This resolves for finite types a problem tha t is still open for recursively constrained types. Some motivation for this work, particularly for finite types and explicit polymorphism, is in provi ding subtype inference for first-class container objects with polymorphic m ethods. (C) 2001 Elsevier Science B.V. All rights reserved.