[swift-evolution] [Pitch] Retiring `where` from for-in loops
Charlie Monroe
charlie at charliemonroe.net
Fri Jun 10 00:01:56 CDT 2016
> On Jun 9, 2016, at 7:16 PM, Erica Sadun <erica at ericasadun.com> wrote:
>
>
>> On Jun 9, 2016, at 11:11 AM, Charlie Monroe <charlie at charliemonroe.net> wrote:
>> See my latest post - included results with -Ofast. But still, using filter and lazy.filter is 10+% slower, which were the suggested alternatives to `where`.
>>
>>
>
> I need to correct this misapprehension.
> My suggested alternative to where was and remains `guard`.
>
> -- E
Sorry, meant alternatives that didn't require any additional code in the body of the for loop.
More information about the swift-evolution
mailing list