> On Sep 21, 2015, at 6:03 PM, Greg Parker <gpar...@apple.com> wrote:
> 
> selectedRow's "row index or -1" behavior is an obvious candidate for a Swift 
> optional, but we don't currently have a good way to bridge such API with 
> Objective-C.

How about allowing the “nullable” keyword on non-pointer types, but adding a 
parameter that specifies the nil condition? An API like selectedRow could 
simply have nullable(-1) added to its type, and then Swift could interpret the 
value as nil if it encountered a -1 from that API.

Charles

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to