valuesemantics

noun
UK /ˈvæljuː sɪˈmæntɪks/
US /ˈvæljuː sɪˈmæntɪks/

Value semantics means copying a thing gives you your own separate copy to change.

Because of value semantics, changing the copy of the list did not change the original list.


OTHER MEANINGS

2. In programming languages, the rule that assigning or passing a value creates a new independent copy rather than sharing the same data.

The language uses value semantics for its number and string types.

3. A property of data types where equality is based on the contents of the value rather than its identity or memory address.

Two dates with the same day compare equal under value semantics.

4. The behavior where modifying one variable never affects another variable that was copied from it.

Value semantics protect the original record from accidental changes.