What is “referential transparency” that I hear talked about in computer programming?

488 views

What is “referential transparency” that I hear talked about in computer programming?

In: Technology

3 Answers

Anonymous 0 Comments

It means that a variable can’t change it’s value within an enviroment.

So stuff like a=a+1 is forbidden. You need to find a new name like a1=a+1

This is important for certain programming paradigms wich are closer to math.

In math a=a+1 is impossible too, because “a” can only have one value.

You are viewing 1 out of 3 answers, click here to view all answers.