Back to Search Start Over

Modular Statically Typed Multimethods

Authors :
Craig Chambers
Todd Millstein
Source :
ECOOP’ 99 — Object-Oriented Programming ISBN: 9783540661566, ECOOP
Publication Year :
1999
Publisher :
Springer Berlin Heidelberg, 1999.

Abstract

Multimethods offer several well-known advantages over the single dispatching of conventional object-oriented languages, including a simple solution to the "binary method" problem, cleaner implementations of the "visitor," "strategy," and similar design patterns, and a form of "open objects." However, previous work on statically typed multimethods whose arguments are treated symmetrically has required the whole program to be available in order to perform typechecking. We describe Dubious, a simple core language including first-class generic functions with symmetric multimethods, a classless object model, and modules that can be separately typechecked. We identify two sets of restrictions that ensure modular type safety for Dubious as well as an interesting intermediate point between these two. We have proved each of these modular type systems sound.

Details

ISBN :
978-3-540-66156-6
ISBNs :
9783540661566
Database :
OpenAIRE
Journal :
ECOOP’ 99 — Object-Oriented Programming ISBN: 9783540661566, ECOOP
Accession number :
edsair.doi...........0e4321c2e04ac70167f12a0fb32d4ff5
Full Text :
https://doi.org/10.1007/3-540-48743-3_13