The Eric Normand Podcast
What is referential transparency?

Episode 96 · Season 1

What is referential transparency?

The Eric Normand Podcast

17:43

About this episode

Referential transparency is a term you’ll hear a lot in functional programming. It means that an expression can be replaced by its result. That is, 5+4 can be replaced by 9, without changing the behavior of the program. You can extend the definition also to functions. So you can say + is referentially transparent, because if you call it with the same values, it will give you the same answer.

More from The Eric Normand Podcast

In this episode, I introduce the time lens, and I posit a law about representing time in complex domains.

10m

In this episode, I introduce the volatility lens, which seeks to help us write code that deals with a changing world.

18m

In this episode, I introduce the architecture lens, its questions, and its goal of modeling architectural domains to manage complexity.

24m

In this episode, I introduce the executable specification lens, its questions, and its goal of getting to runnable, testable code as quickly as possible.

15m