Aug 3, 2024
Misunderstands the mechanism. COW in arrays and dictionaries is not done by the compiler, but built into the implementation itself.
https://github.com/swiftlang/swift/blob/main/stdlib/public/core/Array.swift
Misunderstands the mechanism. COW in arrays and dictionaries is not done by the compiler, but built into the implementation itself.
https://github.com/swiftlang/swift/blob/main/stdlib/public/core/Array.swift
I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.