Lecture overview -- Keyboard shortcut: 'u'  Previous page: Referential Transparency [Section] -- Keyboard shortcut: 'p'  Next page: An illustration of referential transparency -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 4 - Page 2 : 27
Programming Paradigms
Evaluation Order and Infinite Lists
Referential transparency

Two equal expressions can substitute each other without affecting the meaning of a functional program

  • Referential transparency

    • provides for easy equational reasoning about a program

    • does not rely on a particular notion of equality

      • Reference equality, shallow equality and deep equality do all apply

    • is a major contrast to imperative programming

Equals can be replaced by equals