[swift-evolution] When to use argument labels, part DEUX (was: when to use argument labels (a new approach))

plx plxswift at icloud.com
Sat Feb 6 09:03:49 CST 2016


Quick remark: it looks like completion-handlers will benefit from a special-case rule to trim a trailing preposition, e.g. consider this:

extension AVAssetExportSession {
- func determineCompatibleFileTypesWithCompletionHandler(handler: ([String]) -> Void)		
+  func determineCompatibleFileTypesWith(completionHandler handler: ([String]) -> Void)
}

…which should probably be this:

func determineCompatibleFileTypes(completionHandler handler: ([String]) -> Void)

> On Feb 6, 2016, at 1:16 AM, Douglas Gregor via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> On Feb 5, 2016, at 1:32 PM, Dave Abrahams via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> 
>> Given all the awesome feedback I've gotten on this thread, I went back
>> to the drawing board and came up with something new; I think this one
>> works.  The previously-stated goals still apply:
> 
>> [snip goals]
> 
>> P.S. Doug is presently working on generating new importer results, based
>>     on these guidelines, for your perusal.  They should be ready soon.
> 
> 
> Here’s a link:
> 
> 	https://github.com/apple/swift-3-api-guidelines-review/pull/10/files <https://github.com/apple/swift-3-api-guidelines-review/pull/10/files>
> 
> Feedback welcome!
> 
> 	- Doug
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160206/3068900a/attachment.html>


More information about the swift-evolution mailing list