Swift should use a more future-friendly token than @objc

Originator:matthew.wickline
Number:rdar://17209031 Date Originated:06-Jun-2014
Status:Open Resolved:
Product:Developer Tools Product Version:n.a.
Classification: Reproducible:
 
The @objc token will be an eyesore when everyone is programming in Swift or when there are additional languages other than Swift and Objective C.

Instead, use a token which indicates the intent. I propose @expose

"expose this declaration for use in objective c" (or some future language)

and also

"expose this protocol for use in conformance-verifying introspection"

Alternatively, use two tokens for these two uses. Perhaps @interop and @conform. In any case, don't lock in a reference to Objective-C

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!