[Haskell-cafe] Fwd: meaning of "referential transparency"
Alexander Solla
alex.solla at gmail.com
Sat Apr 6 19:54:50 CEST 2013
On Sat, Apr 6, 2013 at 10:43 AM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:
>
> Can someone enlighten me about the origin of the term "referential
> transparency"? I can lookup the definition of "referential transparency" in
> the functional programming sense in the Haskell Wiki and I can lookup the
> meaning of "reference" and "transparency" in a dictionary, but I don't know
> why these words were chosen as name for this defined property.
>
Willard V.O. Quine
Referential transparency arises in constrast to referential opacity. A
context is referentially opaque (reference can't "see" through the context)
when the substitution of equal values are not necessarily equal. For
example, quotation marks are referentially opaque:
"It is necessary that four and four is eight"
"The number of planets is eight"
If these contexts were referentially transparent, we would find that
"It is necessary that the number of planets is eight",
a situation which at the very least puts us in a tight ontological
position.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130406/abe056cb/attachment.htm>
More information about the Haskell-Cafe
mailing list