[swift-evolution] Take 2: Stdlib closure argument labels	and	parameter names
    Dave Abrahams 
    dabrahams at apple.com
       
    Fri Jul  1 19:02:08 CDT 2016
    
    
  
on Wed Jun 29 2016, Anton Zhilin <swift-evolution at swift.org> wrote:
> Dave Abrahams via swift-evolution <swift-evolution at ...> writes:
>
>> I've updated my pull request with a much more conservative set of
>> changes that preserves/restores label-free-ness for all “term of art”
>> functional methods such as filter and reduce.
>> 
>> https://github.com/apple/swift/pull/2981
>> 
>> My current thoughts are that many of the `by:` labels are awkward and
>> not adding much.  Perhaps they all ought to be omitted.
>
> In sort, by: makes perfect sense.
> In lexicographicallyPrecedes (elementsEqual), by: makes some sense, 
> because Precedes (Equal) is in method name.
I don't understand your reasoning here.  How does “precedes” being in the
method name relate to “by?”
> starts(with:by:) looks odd, maybe starts(with:comparingBy:) ?
“starts(with” is in the method name; how is this different?
-- 
Dave
    
    
More information about the swift-evolution
mailing list