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

James Campbell james at supmenow.com
Fri Jan 22 17:20:18 CST 2016


Just wanting to know when swift uses @, when its # and when its just a
normal keyword.

*___________________________________*

*James⎥Lead Engineer*

*james at supmenow.com <james at supmenow.com>⎥supmenow.com <http://supmenow.com>*

*Sup*

*Runway East *

*10 Finsbury Square*

*London*

* EC2A 1AF *

On Fri, Jan 22, 2016 at 10:36 PM, Chris Lattner <clattner at apple.com> wrote:

>
> > On Jan 22, 2016, at 2:03 PM, James Campbell <james at supmenow.com> wrote:
> >
> > What about property attributes? how come some attributes don't have a @
> like dynamic or lazy and others do like @objc.
>
> I’m not sure what you’re asking.  We have a syntactic distinction between
> declaration modifiers and attributes, the later has an @, the former uses a
> context sensitive keyword.  We decide between the two based on how primal
> their effect is on the declaration.
>
> -Chris
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160122/48813d4a/attachment.html>


More information about the swift-evolution mailing list