Swift by Sundell cover image

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

Swift by Sundell

CHAPTER

Swift Gives You Extensive Control Over Memory Management and Copying

In Objective C, you have a very kind of limited selection of data structures. Swift goes this protocol oriented route of defining these things in terms of protocols. And the benefit of this isn't immediately obvious, but it becomes clear later on when you have all kinds of performance optimizations that are built into Swift. It can kind of vent like a lazy array or a lazy collection of something and still behaves exactly the same as if it was a plain array.

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