[swift-evolution] Stdlib closure argument labels and parameter names
Vladimir.S
svabox at gmail.com
Mon Jun 27 11:25:19 CDT 2016
On 27.06.2016 19:02, Erica Sadun via swift-evolution wrote:
>
>> On Jun 27, 2016, at 8:40 AM, Dave Abrahams via swift-evolution
>> <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> “each” is just what's required to make “so” read sensibly.
>>
>> (0..<100).filter(so: isPrime)
>>
>> doesn't make any obvious sense.
>
>
> Shouldn't there be a term of art exemption for `filter(_:)`. Otherwise why
> not use `select(where:)`.
Support the question. IMO we should have filter(_:) as term-of-art or
otherwise rename it to be more swifty and with conformance to naming rules.
FWIW I also like select(where:)
>
> -- E
>
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
More information about the swift-evolution
mailing list