[swift-evolution] [Idea] How to eliminate 'optional' protocol requirements

Joe Groff jgroff at apple.com
Fri Apr 15 20:50:55 CDT 2016


> On Apr 15, 2016, at 4:03 PM, Douglas Gregor <dgregor at apple.com> wrote:
> 
> Both Joe’s suggestion and my proposal need hackery to do the right thing for Objective-C interoperability, and both are feasible. I feel like my proposal is more honest about the hackery going on :)

Since there's a hack involved more or less any way you slice it, the most honest way to admit to the hackery might be to keep the status quo, but just demote "optional" to an "@objcOptional" attribute or something similar that keeps the current behavior.

-Joe


More information about the swift-evolution mailing list