e01.org

Value semantics

In computer science, having value semantics (also value-type semantics or copy-by-value semantics) means for an object that only its value counts, not its identity. Immutable objects have value semantics trivially, and in the presence of mutation, at any point in a program, an object with value semantics can only be uniquely-referenced. The concepts that are used to explain this concept are extensionality, definiteness, substitutivity of identity, unfoldability, and referential transparency.

In computer science, having value semantics (also value-type semantics or copy-by-value semantics) means for an object that only its value counts, not its identity. Immutable objects have value semantics trivially, and in the presence of mutation, at any point in a program, an object with value semantics can only be uniquely-referenced. The concepts that are used to explain this concept are extensionality, definiteness, substitutivity of identity, unfoldability, and referential transparency.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Value semantics". 1790630476. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377328469

JSON record · API collection · citation policy