Is there a plan to support protocol extension in swift 2.0?

I’ve checked the plan list: http://docs.elementscompiler.com/Silver/Swift20/

But it seems there’s no plan to support a very important feature in swift 2.0:
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html#//apple_ref/doc/uid/TP40014097-CH25-ID521

This feature is the key to implement mixin pattern, which is not supported by C#. I’m really looking forward to it.

Already Supported By Silver in 8.1
Extensions for protocols

at the very bottom of http://docs.elementscompiler.com/Silver/Swift20/

Is that what you’re looking for? )

No…
I’ve noticed it at the begining and did a test for it:

protocol Disposable {
func destroy()
}
extension Disposable{
func destroy() { }
}

This code works in XCode 7.0 beta but can’t be compiled by Element 8.1/8.2.

So I’m not sure what that bottom line means, but it’s not the same thing described in Swift 2.0 doc.

1 Like