AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Pros and Cons of Swift Protocols
There is this slightly different way in which you can use a struct that has closure properties. And I can substitute in for a protocol for the most part. So if you use this struct interface, it allows you to do some fun things like you get the ability to kind of hot swap out one single endpoint in the dependency for new functionality. But yeah, it's if you're used to the protocols and go for the protocols.