Thank you for the article. Very informative.

So, I believe core team can answer the question : "..why P.Protocol is needed" and if we can remove it without problems.


Small fix - A&B should have ': HasStatic' and closing bracket here:

protocol HasStatic { static func staticMethod() }
struct A { static func staticMethod() -> String { return "A" }
struct B { static func staticMethod() -> String { return "B" }


On 22.07.2016 14:40, Anton Zhilin via swift-evolution wrote:
For everyone who doesn't understand metatypes and our problem, please see:

https://gist.github.com/Anton3/25a66751812f14f76cacc5e382339522

Read it from beginning to ending and ask if you don't understand something!


_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to