2004 · 150 citations · 17 references
ComputingComputer ScienceCompilersProgramming LanguagesSystems ProgrammingCompiler ConstructionObject-oriented ProgrammingSoftware ConstructionSoftware DesignType CheckingType SystemsCode ReuseCompiler SupportObject-oriented Language DesignOperational SemanticsRuntime Type CheckingSoftware FrameworksStructural Operational SemanticsType Soundness
Inheritance is a useful mechanism for factoring and reusing code. However, it has limitations for building extensible systems. We describe <i>nested inheritance</i>, a mechanism that addresses some of the limitations of ordinary inheritance and other code reuse mechanisms. Using our experience with an extensible compiler framework, we show how nested inheritance can be used to construct highly extensible software frameworks. The essential aspects of nested inheritance are formalized in a simple object-oriented language with an operational semantics and type system. The type system of this language is sound, so no run-time type checking is required to implement it and no run-time type errors can occur. We describe our implementation of nested inheritance as an unobtrusive extension of the Java language, called Jx. Our prototype implementation translates Jx code to ordinary Java code, without duplicating inherited code.
17
A Syntactic Approach to Type Soundness
Andy Wright, Matthias Felleisen · Information and Computation · 1994 · 1.1K citations
Gilad Bracha, William R. Cook · 1990 · 811 citations
Engineering, Systems Engineering, Knowledge Representation +13
An Overview of the Scala Programming Language
Martin Odersky, Philippe Altherr, Vincent Cremet et al. · Infoscience (Ecole Polytechnique Fédérale de Lausanne) · 2004 · 511 citations · Full text