Swift’s Ownership And Noncopyable Types
Classes were reference-counted automatically, structs and enums were copied freely, and the whole system ran quietly in the background without asking developers to think about ownership at all. Then, starting with Swift 5.9 in 2023, Apple began introducing a set of features, borrowing, consuming, and …
