[swift-evolution] [Proposal] Allow static protocol extension methods to be called directly on the protocol

Joe Groff jgroff at apple.com
Wed Mar 23 11:49:44 CDT 2016

> On Mar 23, 2016, at 7:13 AM, Maximilian H├╝nenberger <m.huenenberger at me.com> wrote:
> Wouldn't it be easier (syntax wise) to extend the meta type directly? :
> protocol P {}
> extension P.Type {
>       static func a() {}
> }

Maybe we'd allow that too, but you wouldn't want 'static' there, since that would put methods on P.Type.Type rather than P.Type.


More information about the swift-evolution mailing list