SwiftWeekly/swiftweekly.github.io

[171] Issue #171 - October 22, 2020

fassko opened this issue Β· 12 comments

To contribute to this issue, simply leave a comment here. Please also review our contributing guidelines.

The current draft for this issue in _drafts/. If you want to contribute directly, feel free to open a pull request.

https://twitter.com/Catfish_Man/status/1318448928048623616 + thread

Apropos of nothing (πŸ˜‡) I think it’s time for another refresher on copy-on-write values in Swift

  • not programmer visible, appears to always copy

  • not the same thing as pass by value / value semantics but a behind the scenes optimization of them

  • not automatic for your types