Expression problem

From Wikipedia, the free encyclopedia
  (Redirected from Expression Problem)
Jump to: navigation, search

The Expression Problem is a term used in discussing strengths and weaknesses of various programming paradigms and programming languages. The expression problem can be treated as a use case in programming language design.[1][2][3][4][5]

Philip Wadler coined the term:

The Expression Problem is a new name for an old problem. The goal is to define a datatype by cases, where one can add new cases to the datatype and new functions over the datatype, without recompiling existing code, and while retaining static type safety (e.g., no casts).[6]

Wadler selected the term as a pun: the Problem arises most commonly when discussing a language's ability to extend its notion of an expression, and as Wadler points out in the second paragraph of his original essay, "whether a language can solve the Expression Problem is a salient indicator of its capacity for expression."[6]

The expression problem is also a fundamental problem in multi-dimensional Software Product Line design and in particular as an application or special case of FOSD Program Cubes.

[edit] See also

[edit] References

[edit] External links

Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export