![]() |
CiteULike | ![]() |
dherman's CiteULike | ![]() |
![]() |
|
![]() |
Register | ![]() |
Log in | ![]() |
The Expression Problem Revisitedby: Mads Torgersen
|
Reviews
[Write a review of this article]
Find related articles from these CiteULike users
Find related articles with these CiteULike tags
Posting History
AbstractThe expression problem (aka the extensibility problem) refers to a fundamental dilemma of programming: Can your application be structured in such a way that both the data model and the set of virtual operations over it can be extended without the need to modify existing code, without the need for code repetition and without runtime type errors. Over the years, many solutions to this problem have been proposed, each having different characteristics of type safety and reusability. In this paper we present four new solutions to the problem, formulated using the genericity mechanism of the forthcoming JDK1.5 distribution of the Java programming language. These solutions each highlight new ideas and approaches, and compare well to earlier work. They rely on techniques that can be used in everyday programming, and show new ways of building solutions with standard and soon-to-be mainstream genericity mechanisms, which are type safe and have very good reusability properties.
BibTeX record
RIS record