[swift-evolution] [Pitch] Overridable Members in Extensions

Erica Sadun erica at ericasadun.com
Thu Feb 18 12:29:07 CST 2016


>> I'm presuming that this will not allow you to swap out one implementation for another? If not then it may be necessary to be able to call or refer to the original version of the method.
> 
> This is only for subclass-overriding, not ObjC-category-style method replacement.
> 
> Jordan

I hate to go all Abrahams on you, but do you have any use-cases where you're delivered a subclass and a superclass in a module, where there's no subclass implementation, and you want to add one that's an override via an extension rather than just sub-subclassing?

-- E"brahams"



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160218/6ef23e10/attachment.html>


More information about the swift-evolution mailing list