Swift by Sundell cover image

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

Swift by Sundell

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app