|
ABSTRACT
We present a type system for a language based on F≤, which allows certain type annotations to be elided in actual programs. Local type inference determines types by a combination of type propagation and local constraint solving, rather than by global constraint solving. We re ne the previously existing local type inference system of Pierce and Turner[PT98] by allowing partial type information to be propagated. This is expressed by coloring types to indicate propagation directions. Propagating partial type information allows us to omit type annotations for the visitor pattern, the analogue of pattern matching in languages without sum types.
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.
| |
ACF+
|
Andrew Appel, Luca Cardelli, Kathleen Fisher, Carl Gunter, Robert Harper, Xavier Leroy, Mark Lillibridge, David B. MacQueen, John Mitchell, Greg Morrisett, John H. Reppy, Jon G. Riecke, Zhong Shao, and Christopher A. Stone. Principles and preliminary design for ML 2000.
|
 |
AW93
|
|
 |
BOSW98
|
Gilad Bracha , Martin Odersky , David Stoutamire , Philip Wadler, Making the future safe for the past: adding genericity to the Java programming language, Proceedings of the 13th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications, p.183-200, October 18-22, 1998, Vancouver, British Columbia, Canada
|
| |
Car93
|
Luca Cardelli. An implementation of F< Technical Report 97, DEC Systems Research Center, February 1993.
|
 |
CDG+92
|
Luca Cardelli , James Donahue , Lucille Glassman , Mick Jordan , Bill Kalsow , Greg Nelson, Modula-3 language definition, ACM SIGPLAN Notices, v.27 n.8, p.15-42, Aug. 1992
[doi> 10.1145/142137.142141]
|
| |
CT98
|
Craig Chambers and Cecil Team. The Cecil language, specification and rationale, December 1998.
|
| |
EST95
|
Jonathan Eifrig, Scott Smith, and Valery Trifonov. Type inference for recursively constrained types and its application to OOP. In Proc. MFPS '95, Eleventh Conference on the Mathematical Foundations of Programming Semantics, March 1995.
|
 |
FG96
|
|
| |
GHJV94
|
|
| |
GR99
|
|
 |
Jon97
|
|
| |
Knu68
|
Donald E. Knuth. Semantics of context-free languages. Mathematical Systems Theory, 2(2):127-145, February 1968.
|
 |
Lit98
|
Vassily Litvinov, Contraint-based polymorphism in Cecil: towards a practical and static type system, Proceedings of the 13th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications, p.388-411, October 18-22, 1998, Vancouver, British Columbia, Canada
|
| |
Mey92
|
|
| |
NC97
|
Johan Nordlander and Magnus Carlsson. Reactive objects in a functional language - an escape from the evil I. In Proceedings of the Haskell Workshop, June 1997.
|
 |
Nor98
|
|
| |
Ode00
|
|
 |
OL96
|
|
| |
OSW99
|
|
 |
OW97
|
|
| |
OZZ00
|
Martin Odersky, Christoph Zenger, and Matthias Zenger. Colored local type inference. http://lampwww.epfl.ch/papers/clti-color.ps.gz, 2000.
|
 |
Pfe88
|
|
 |
Pot96
|
|
 |
Pot98
|
|
 |
PT98
|
|
 |
Rém89
|
|
| |
Str91
|
|
| |
TS96
|
|
 |
Wad89
|
|
| |
Wel94
|
J.B. Wells. Typability and type checking in the second order -calculus are equivalent and undecidable. In Proc. 9th IEEE Symposium on Logic in Computer Science, pages 176-185, July 1994.
|
| |
WJ00
|
Keith Wansbrough and Simon Peyton Jones. Simple usage polymorphism. In Proceedings of the Third ACM SIGPLAN Workshop on Types in Compilation, September 2000.
|
 |
XP99
|
|
CITED BY 13
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PETER SEWELL , JAMES J. LEIFER , KEITH WANSBROUGH , FRANCESCO ZAPPA NARDELLI , MAIR ALLEN-WILLIAMS , PIERRE HABOUZIT , VIKTOR VAFEIADIS, Acute: High-level programming language design for distributed computation, Journal of Functional Programming, v.17 n.4-5, p.547-612, July 2007
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|