|
ABSTRACT
This article investigates an ML-like language with byname semantics for polymorphism: polymorphic objects are not evaluated once for all at generalization time, but re-evaluated at each specialization. Unlike the standard ML semantics, the by-name semantics works well with polymorphic references and polymorphic continuations: the naive typing rules for references and for continuations are sound with respect to this semantics. Polymorphism by name leads to a better integration of these imperative features into the ML type discipline. Practical experience shows that it retains most of the efficiency and predictability of polymorphism by value.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
L. Cardelli. Typeful programming. In E. J. Neuhold and M. Paul, editors, Formal Description of Programming Concepts, pages 431-507. Springer-Verlag, 1989.
|
| |
3
|
L. Damas. Type assignment in programming lan. guages. PhD thesis, University of Edinburgh, 1985.
|
 |
4
|
Bruce Duba , Robert Harper , David MacQueen, Typing first-class continuations in ML, Proceedings of the 18th ACM SIGPLAN-SIGACT symposium on Principles of programming languages, p.163-173, January 21-23, 1991, Orlando, Florida, United States
[doi> 10.1145/99583.99608]
|
| |
5
|
M. Felleisen and D. P. Friedman. Control operators, the SECD machine and the ~-calculus. In Formal Description of Programming Concepts III, pages 131-141. North-Holland, 1986.
|
 |
6
|
|
| |
7
|
R. Harper and M. Lillibridge. ML with callcc is unsound. Message sent to the sral mailing list, July 1991.
|
| |
8
|
R. Harper and M. Lillibridge. Polymorphic type assignment and CPS conversion. In 1992 SIC- PLAN Continuations Workshop, 1992.
|
 |
9
|
|
| |
10
|
X. Leroy. The ZINC experiment: an economical implementation of the ML language. Technical report 117, INRIA, 1990.
|
| |
11
|
X. Leroy. Typage polymorphe d'un langage algorithmique. Doctoral dissertation (in French), Universit~ Paris 7, 1992.
|
| |
12
|
X. Leroy and M. Mauny. The Caml Light system, version 0.5- documentation and user's guide. Technical report L-5, INRIA, 1992.
|
 |
13
|
|
| |
14
|
|
| |
15
|
|
| |
16
|
|
 |
17
|
|
| |
18
|
J.-P. Talpin and P. Jouvelot. The type and effect discipline. In Logic in Computer Science 1992. IEEE Computer Society Press, 1992.
|
| |
19
|
|
| |
20
|
|
| |
21
|
A. K. Wright and M. Felleisen. A syntactic approach to type soundness. Technical report TR91- 160, Rice University, 1991.
|
CITED BY 6
|
|
Carl A. Gunter , Didier Rémy , Jon G. Riecke, A generalization of exceptions and control in ML-like languages, Proceedings of the seventh international conference on Functional programming languages and computer architecture, p.12-23, June 26-28, 1995, La Jolla, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|