Abstract
The aim of this work is largely a practical one. A widely employed style of programming, particularly in structure-processing languages which impose no discipline of types, entails defining procedures which work well on objects of a wide variety. We present a formal type discipline for such polymorphic procedures in the context of a simple programming language, and a compile time type-checking algorithm W which enforces the discipline. A Semantic Soundness Theorem (based on a formal semantics for the language) states that well-type programs cannot “go wrong” and a Syntactic Soundness Theorem states that if W accepts a program then it is well typed. We also discuss extending these results to richer languages; a type-checking algorithm based on W is in fact already implemented and working, for the metalanguage ML in the Edinburgh LCF system.
| Original language | English |
|---|---|
| Pages (from-to) | 348-375 |
| Number of pages | 28 |
| Journal | Journal of Computer and System Sciences |
| Volume | 17 |
| Issue number | 3 |
| DOIs | |
| Publication status | Published - Dec 1978 |
Fingerprint
Dive into the research topics of 'A theory of type polymorphism in programming'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver