[swift-evolution] [Pitch] Retiring `where` from for-in loops

Thorsten Seitz tseitz42 at icloud.com
Sat Jun 11 15:07:30 CDT 2016


+1

-Thorsten 

> Am 10.06.2016 um 22:57 schrieb Sean Heber via swift-evolution <swift-evolution at swift.org>:
> 
> 
>> Here, though emotion is hardly a worthy barometer, I had quite a visceral reaction to the example given at one point:
>> 
>> ```
>> for number in fibonacci where number % 2 == 0 while number < 4_000_000 {...}
>> ```
>> 
>> This, IMO, is long enough to cause a heart attack.
> 
> To me, that looks almost beautiful - it says exactly what it means!
> 
> l8r
> Sean
> 
> _______________________________________________
> 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