arXiv (Cornell University) · 2019 · 27 citations · 14 references
ComputingComputer ScienceProgramming LanguagesSyntaxSystems ArchitectureObject-oriented AnalysisObject-oriented DesignObject-oriented ProgrammingSoftware ConstructionSoftware DesignType SystemsDesign PatternsLexical ScopeObject-oriented Architecture
Design patterns are distilled from many real systems to catalog common programming practice. However, some object-oriented design patterns are distorted or overly complicated because of the lack of supporting programming language constructs or mechanisms. For this paper, we have analyzed several published design patterns looking for idiomatic ways of working around constraints of the implementation language. From this analysis, we lay a groundwork of general-purpose language constructs and mechanisms that, if provided by a statically typed, object-oriented language, would better support the implementation of design patterns and, transitively, benefit the construction of many real systems. In particular, our catalog of language constructs includes subtyping separate from inheritance, lexically scoped closure objects independent of classes, and multimethod dispatch. The proposed constructs and mechanisms are not radically new, but rather are adopted from a variety of languages and programming language research and combined in a new, orthogonal manner. We argue that by describing design patterns in terms of the proposed constructs and mechanisms, pattern descriptions become simpler and, therefore, accessible to a larger number of language communities. Constructs and mechanisms lacking in a particular language can be implemented using paradigmatic idioms.
14
Object-oriented programming with flavors
David A. Moon · ACM SIGPLAN Notices · 1986 · 302 citations
A type-theoretic approach to higher-order modules with sharing
Robert Harper, Mark Lillibridge · 1994 · 291 citations · Full text
A denotational semantics of inheritance and its correctness
William R. Cook, Jens Palsberg · 1989 · 219 citations
Interfaces for strongly-typed object-oriented programming
Peter S. Canning, William R. Cook, Walter L. Hill et al. · 1989 · 128 citations · Full text