A property of a function, variable, or expression whereby the expression can be replaced by its (evaluated) value without affecting the behavior of the program.
Overview
Referential transparency is a property of some computer programs and programming languages. The property is present if a function, variable or expression in the program is immune to "side effects".
The immunity to side-effects exists when the function, variable or expression can be replaced with its (evaluated) value, without affecting the behavior of the program.