Swift by Sundell cover image

117: “Swift 5.7, generics, and the road to Swift 6”, with special guest Ben Cohen

Swift by Sundell

CHAPTER

Generic Polymorphism Is the Right Choice

generic is not always the right choice, but it is the right choice when you want that kind of polymorphism. The fact that we can now do that easier, i think, is a really big win for the language. So instead of sub type polimorphism, you have parametric polimorphISM. That is, you paramatorize the behavior by supplying a type.

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