[swift-evolution] When to use argument labels, part DEUX

Charles Constant charles at charlesism.com
Sun Feb 7 10:17:00 CST 2016


>    if you try to fix this with conjunctions
>        removeTracks(havingMediaType: x, andComposer: y, andLength: z)


I'm confused about this.
Is it necessary to use "and" because Apple needs to automate the conversion
of Cocoa libraries? Otherwise, wouldn't using "having" for all three makes
this a non-issue?

    removeTracks( havingMediaType: x, havingComposer: y, havingLength: z )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160207/99b50316/attachment.html>


More information about the swift-evolution mailing list