[swift-evolution] [Draft] Apply -ed/-ing rule to core functional methods (e.g. filter => filtered)
Dave Abrahams
dabrahams at apple.com
Tue Jun 21 15:50:11 CDT 2016
on Tue Jun 21 2016, "Vladimir.S via swift-evolution" <swift-evolution at swift.org> wrote:
> On 21.06.2016 0:56, Brent Royal-Gordon via swift-evolution wrote:
>>>> And as I said, if we feel `filter` is unsalvageable, the alternate
>>>> Smalltalk-lineage `select` is clearer.
>>>
>>> Than “where?”
>>
>> No, than "filter". "filter" is the most common name, but "select" is
>
> Why not x.select(where: isPrime) ? IMO this is more clear than
> x.select(filter: isPrime) and looks similar to `where` in other parts
> of language.
I have some reasons worthy of consideration, but would prefer to
postpone this discussion until after we deal with
http://mid.gmane.org/m27fdjzh72.fsf%40fripp.apple.com
--
Dave
More information about the swift-evolution
mailing list