[swift-evolution] Static Dispatch Pitfalls

Brent Royal-Gordon brent at architechies.com
Sat May 21 07:25:09 CDT 2016


> Making them final is not a good idea. I see the default implementations in protocols as something that should replace the optional methods in @objc protocols.

We aren't discussing default implementations. We're discussing methods that are listed *only* in the protocol extension, not in the protocol itself. These methods cannot be "overridden" in the way that a defaulted protocol method can be; I think it's safest to outlaw any attempt to "override" them at all.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list