阅读背景:

如何以通用方式调用协议上的静态函数?

来源:互联网 

Is there a point to declaring a static function on a protocol? The client using the protocol has to call the function on a type conforming to the protocol anyway right? That breaks the idea of not having to know the type conforming to the protocol IMO. Is there a way to call the static function on the protocol in a way where I don't have to know the actual type conforming to my protocol?Is there a point to declaring a static function




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: