A referentially transparent function takes input only in the form of arguments, and delivers output only in the form of its return value. It doesn’t access any global data sources, and it doesn’t cause any external side effects along the way.
- “What is referential transparency?” at Stack Overflow
- Wikipedia – Referential Transparency
- in Ruby Tapas –
- When we change the context that a referentially transparent method is called in, its behavior will never change.
- …problem [is] referential transparency, or rather, the lack of referential transparency.
- a referentially transparent method that works in one place can be used anywhere else
- [these] methods are referentially transparent, which means they are pure functions of their inputs