[swift-evolution] [swift-evolution-announce] [Review] SE-0089: Replace protocol<P1, P2> syntax with Any<P1, P2>

Brent Royal-Gordon brent at architechies.com
Sat Jun 11 07:23:52 CDT 2016

> The only magic would be that all type definitions (`protocol` etc.) which do not give a supertype they conform to, will implicitly conform to `Any`, i.e.
> protocol Foo { … }
> means
> protocol Foo : Any { … }

Any is also the supertype of all structural types, and structural types cannot conform to protocols.

Brent Royal-Gordon

More information about the swift-evolution mailing list