6min chapter

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 Functions - What's New in Swift?

In swift five six, you can't pass an existential type directly into a generic function that took that concrete type. Now we have this technique called existential opening, which actually works by opening up the existential box and taking the type out of it. And there's a really great explanation of this um in a couple of to o that we did this year. If you watch what's new in swift, becket takes you through thisUm in a really nice example. Then for a slightly more in depth look, holly has a talk on, uh, sort of reintroducing generic to everybody now that they're way easier to use.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode