- swift
- swift-zero-expert
- swift-fundamentals
Swift from Zero to Expert #15: Opaque & Boxed Protocol Types
The third door out of 'I don't want to name the concrete type'. some hides one concrete type while keeping its identity — no box, compile-time. any erases the type into a runtime box. This is how you finally return a protocol that has an associatedtype.