Referential Transparency

Kind: principle

Layer: Computation Core

Record: architecture:referential-transparency

Severity: contextual

Scope: function, expression

Canonical: Ontology

A design rule that an expression can be replaced by its value without changing the program's behavior.

Listed in Architecture principles, after Predictability and before Pure Functions.

Requires

Reinforces

Enables

Conflicts with

In tension with

Tensions

Violated by

Refactored by

Severity

Category

Linked from