Sciweavers

JAVA
1999
Springer

A Programmer's Reduction Semantics for Classes and Mixins

14 years 3 months ago
A Programmer's Reduction Semantics for Classes and Mixins
While class-based object-oriented programming languages provide a flexible mechanism for re-using and managing related pieces of code, they typically lack linguistic facilities for specifying a uniform extension of many classes with one set of fields and methods. As a result, ers are unable to express certain abstractions over classes. In this paper we develop a model of class-to-class functions that we refer to as mixins. A mixin function maps a class to an extended class by adding or overriding fields and methods. Programming with mixins is similar to programming with single inheritance classes, but mixins more directly encourage programming to interfaces. The paper develops these ideas within the context of Java. The results are
Matthew Flatt, Shriram Krishnamurthi, Matthias Fel
Added 04 Aug 2010
Updated 04 Aug 2010
Type Conference
Year 1999
Where JAVA
Authors Matthew Flatt, Shriram Krishnamurthi, Matthias Felleisen
Comments (0)