[swift-evolution] [Review] SE-0022: Referencing the Objective-C selector of a method

Douglas Gregor dgregor at apple.com
Thu Jan 21 13:08:45 CST 2016

> On Jan 20, 2016, at 8:41 PM, Rob Mayoff via swift-evolution <swift-evolution at swift.org> wrote:
> On Wed, Jan 20, 2016 at 9:39 PM, Chris Lattner via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> That said, I’m in favor of x.selector, or #selector(x).  The former seems more syntactically elegant if it is practical.
> It seems like #selector(x) would make it easier to get good autocompletion (like Xcode's autocompletion of @selector(x) in ObjC doesn't insert argument placeholders).

I guess we could give more targeted code completions inside #selector(<code complete here>, only providing name completions for @objc entities.

	- Doug

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

More information about the swift-evolution mailing list