Even with a closure, at the point of use it would likely be clear that the 
value is being used as a boolean condition - vs “filter” which returns an array.

-DW

> On Apr 5, 2017, at 4:06 PM, Jarod Long via swift-evolution 
> <[email protected]> wrote:
> 
> I don't think an argument label is sufficient to satisfy the first 
> fundamental API design guideline: "Clarity at the point of use is your most 
> important goal."
> 
> The argument label is not visible at the point of use when using trailing 
> closure syntax, so it provides no additional clarity there. Moving the 
> argument label into the base method name solves that problem and I think is a 
> clear case of satisfying the second fundamental guideline: "Clarity is more 
> important than brevity."
> 
> Jarod

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to