[swift-evolution] Requesting default values for Cocoa/Cocoa Touch APIs

Dave Abrahams dabrahams at apple.com
Tue Apr 12 14:53:34 CDT 2016


on Mon Apr 11 2016, Erica Sadun <erica-AT-ericasadun.com> wrote:

>     On Apr 11, 2016, at 4:32 PM, Dave Abrahams via swift-evolution
>     <swift-evolution at swift.org> wrote:
>
>     on Mon Apr 11 2016, Russ Bishop <swift-evolution at swift.org> wrote:
>
>         Wouldn’t this be the responsibility of UIKit/AppKit teams to provide
>         extensions
>         that pass the default values?
>
>     Yup. Please file radars against those components.
>
> To clarify: radars, bugreport.apple.com, and not bugs.swift.org,
> right? 

Right.

> Also, any best tips for getting them noticed? Anyone in particular we
> can ping on Twitter or via email with radar numbers?

Wish I had ideas for you on this.  Maybe someone else does.

>
>
> -- E
>
>         Russ
>
>         On Apr 8, 2016, at 10:40 AM, Erica Sadun via swift-evolution
>         <swift-evolution at swift.org> wrote:
>
>         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
>         _______________________________________________
>         swift-evolution mailing list
>         swift-evolution at swift.org
>         https://lists.swift.org/mailman/listinfo/swift-evolution
>
>         _______________________________________________
>         swift-evolution mailing list
>         swift-evolution at swift.org
>         https://lists.swift.org/mailman/listinfo/swift-evolution
>
>     -- 
>     Dave
>
>     _______________________________________________
>     swift-evolution mailing list
>     swift-evolution at swift.org
>     https://lists.swift.org/mailman/listinfo/swift-evolution
>

-- 
Dave


More information about the swift-evolution mailing list