Swift by Sundell cover image

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

Swift by Sundell

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app