[swift-evolution] [Proposal draft] Generalized Naming for Any Function
Brent Royal-Gordon
brent at architechies.com
Tue Dec 29 14:19:15 CST 2015
> Currently, they can be disambiguated using (self as ProtocolA).bar(), no?
I think this method is more about, for instance:
extension NSString {
func drawAtPoint(point: CGPoint, withAttributes attributes: [String: AnyObject]?) {
doSomeOtherThing()
myString.`UIKit.drawAtPoint`(point, withAttributes: attrs)
}
}
You use it to access a method by the module it comes from, not the protocol it comes from.
--
Brent Royal-Gordon
Architechies
More information about the swift-evolution
mailing list