Swift by Sundell cover image

80: “Lists and loops”, with special guest Nick Lockwood

Swift by Sundell

CHAPTER

Swift - Copy on Write Semantics for Data Structures

Swift's protocol extensions are again, a really nice solution to the problem that other languages have of kind of these fragile base classes. And Swift actually puts functionality on protocols so that you don't have to share an implementation between things. You can build a data structure completely from scratch using a struct, but it can certainly inherit all of this functionality just by behaving like a collection.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner