AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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.