Skip to content

Glossary: Swift Beyond the Basics

value semantics

Also written: value type, value types

Each copy is independent, so changing one leaves the others alone. Structs, enums, strings and collections work this way.

Where the book teaches it

Related terms

copy-on-writeclassidentity