Referential Transparency
Today we were lucky to have Bill Schofield from Pivotal Labs speak to the cohort about Functional Programming, and believe you me, I was taking notes!
Instead of going over all the pieces discussed, I updated a presentation slide deck with the following tenets of Functional Programming vs Object Oriented Programming:
One particular tenet I learned about today was Referential Transparency.
According to a super useful article about the subject:
Referential transparency means that a function call can be replaced by its value or another referentially transparent call with the same result.
So what does that look like?
To learn more about the origin of the term Referential Transparency
, check out this article Why do they call it Referentially Transparent?
Here are some other articles I found useful: