Different flavors of type erasure in Swift — Swift by Sundell

www.swiftbysundell.com

A situation that most Swift developers will encounter at one point or another, is when some form of type erasure is needed to be able to reference a generic protocol. John Sundell starts by taking a look at what makes type erasure such an essential technique in Swift, and then moves on to explore different “flavors” of implementing it — and how each flavor comes with its own set of pros and cons.

Read more...
Linkedin

Want to receive more content like this in your inbox?