Reading List

Swift Proposal: Noncopyable Structs and Enums from Michael Tsai RSS feed.

Swift Proposal: Noncopyable Structs and Enums

SE-0390: All currently existing types in Swift are copyable, meaning it is possible to create multiple identical, interchangeable representations of any value of the type. However, copyable structs and enums are not a great model for unique resources. Classes by contrast can represent a unique resource, since an object has a unique identity once initialized, […]