4min 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

The New Features That We've Introduced With Any Types

The new features that we've introduced with uh, with the any types really allow you to selectively reintroduce, use dynamic behavior while still broadly using a generic approach. So just how you can say, a ray angle bracket string to reference a array of strings, you can now do the same thing, but with any collection. Now, where the code that is working on that collection doesn't need to be aware of the exact, concrete, underlying type that is being used. And i think we're seeing here, like how that can be done now in a much more light weight way, leveraging collection or sequence, or any of the other kind of proticls it comes with.

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