[swift-evolution] What are the rules for including @ with attributes/keywords and the possibility of removing it

Brandon Knope bknope at me.com
Mon Jan 11 11:49:23 CST 2016


@noescape
@autoclosure

Is there a particular reason why there is a @ prepending these attributes/keywords?


func test(@autoclosure test: () -> Bool) -> Void

vs.

func test(autoclosure test: () -> Bool) -> Void 

It seems cleaner/clearer without @ sprinkled everywhere, but what is the rationale behind needing the @ symbol?

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


More information about the swift-evolution mailing list