Metaphoric polymorphism: Taking code reuse one step further

Ran Rinat, Menachem Magidor

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

2 Scopus citations

Abstract

We propose two new constructs for object oriented programming that significantly increase polymorphism. Consequently, code may be reused in ways unaccounted for by existing machinery. These constructs of type correspondence and partial inheritance are motivated from metaphors of natural language and thought. They establish correspondences between types non of which is (necessarily) a subtype of the other. As a result, methods may operate on objects - and may receive arguments - of types different than the ones originally intended for. The semantics of the proposed constructs generalizes that of ordinary inheritance, thereby establishing the latter as a special case. We show that the incorporation of these constructs in programming supports the process of natural software evolution and contributes to a better conceptual organization of the type system.

Original languageEnglish
Title of host publicationECOOP 1996 – Object-Oriented Programming - 10th European Conference, Proceedings
EditorsPierre Cointe, Pierre Cointe
PublisherSpringer Verlag
Pages449-471
Number of pages23
ISBN (Print)9783540614395, 9783540614395
DOIs
StatePublished - 1996
Event10th European Conference on Object-Oriented Programming, ECOOP 1996 - Linz, Austria
Duration: 8 Jul 199612 Jul 1996

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume1098
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference10th European Conference on Object-Oriented Programming, ECOOP 1996
Country/TerritoryAustria
CityLinz
Period8/07/9612/07/96

Bibliographical note

Publisher Copyright:
© Springer-Verlag Berlin Heidelberg 1996.

Fingerprint

Dive into the research topics of 'Metaphoric polymorphism: Taking code reuse one step further'. Together they form a unique fingerprint.

Cite this