[swift-evolution] AnyProtocol proposal

Sune Foldager cyano at me.com
Wed Feb 17 13:12:11 CST 2016

> On 17 Feb 2016, at 18:59, João Nunes via swift-evolution <swift-evolution at swift.org> wrote:
> In the example given. How would you restrict the generic type to a protocol without the use of AnyProtocol ?

But what would you gain from restricting to just protocols? What could go wrong if someone passed in a class?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160217/3dbd957c/attachment.html>

More information about the swift-evolution mailing list