On the Interaction of Object-Oriented Design Patterns and Programming Languages
Gerald BaumgartnerKLKonstantin LäuferVincent F. Russo
Gerald Baumgartner
KLKonstantin Läufer
Vincent F. Russo
+3
This paper argues that some object-oriented design patterns are distorted by the absence of supporting language constructs. By analyzing published patterns, the authors identify a set of general-purpose mechanisms—subtyping separate from inheritance, lexically scoped closures independent of classes, and multimethod dispatch—that would simplify pattern implementations in statically typed object-oriented languages. These constructs, drawn from existing languages and research, are combined orthogonally to make pattern descriptions more accessible across language communities, with missing constructs implementable via idioms.

arXiv ·
· May 31, 2019