Mutability is property of any function, variable or expression whose values are subject to changes with "side-effects". In other words, the value does not have referential transparency.
Overview
Mutability is property of any function, variable or expression where values are subject to changes with "side-effects". In other words, the value does not have referential transparency.
When the property is present on any component of a program, that program component is said to be "mutable".
Mutability may also generally refer to the question of whether or not a program component is mutable. When a program component is not "mutable" it is said to be "immutable".