Swift by Sundell cover image

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

Swift by Sundell

CHAPTER

Copy on Write in Swift

Swift developers often get the impression that there's a lot of magic going on under the hood. But in fact, Swift is built around composing different types together. You can have your cake and eat it too, or you can have your array and eat your dictionary too for example. And I feel like we can use the same design pattern here as well where if you want a custom API to access your data, for example, you might want it to be accessible both using an ID or an index and so on.

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