[swift-evolution] Requesting default values for Cocoa/Cocoa Touch APIs
erica at ericasadun.com
Fri Apr 8 12:40:32 CDT 2016
Is there a best way to request default values for common Cocoa and Cocoa Touch APIs?
Now that we're moving to Swift, the language supports defaults and omitted parameters
but the ObjC APIs do not (yet) supply them.
For example, dismissViewControllerAnimated(flag: true, completion: nil)
could become dismissAnimated() when default values are available for flag and completion.
There's a large-ish class of these boilerplate defaults and it would be nice if there were a way to
be able to request them.
cc'ing in Daniel S whose idea this is.
Thanks, -- E
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution