Publication | Open Access
Classes and mixins
459
Citations
15
References
1998
Year
Unknown Venue
Extended ClassEngineeringProgram AnalysisComposition ApproachFormal MethodsSoftware EngineeringObject-oriented ProgrammingObject OrientationComputer ScienceInterface (Object-oriented Programming)SemanticsExtensible LanguageEssential Java SubsetSoftware AnalysisAspect-oriented ProgrammingSoftware DesignMixin FunctionProgramming Languages
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, programmers 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 1. an intuitive model of an essential Java subset; 2. an extension that explains and models mixins; and 3. type soundness theorems for these languages.
| Year | Citations | |
|---|---|---|
Page 1
Page 1