Results 1 -
1 of
1
Objects and Subtyping in a Functional Perspective
, 1992
"... Object oriented programming languages with subtyping facilitate the re-use of code which forms the top part of a call-graph. This style of code reuse, sometimes called inverted programming, cannot be simulated easily in traditional languages. We present a technique for achieving the same eect in the ..."
Abstract
-
Cited by 2 (1 self)
- Add to MetaCart
Object oriented programming languages with subtyping facilitate the re-use of code which forms the top part of a call-graph. This style of code reuse, sometimes called inverted programming, cannot be simulated easily in traditional languages. We present a technique for achieving the same eect in the framework of a higher-order, polymorphic functional language without subtyping. Our method establishes a close relationship between the object-oriented concepts of class, \self", and subtyping and the functional concepts of algebraic data types and abstraction functions. The relationship can serve as a transformational semantics of object-oriented language elements. Keywords: Code Reuse, Subtyping, Parametric Polymorphism, Haskell, Abstraction Functions. Topic: Research 4600 Words 1 Introduction: Facets of Code-Reuse The biggest advantage of using an object-oriented programming language instead of a conventional one is the increased ability of reusing code. This work was motivated by ...

