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

Jean-Daniel Dupas mailing at xenonium.com
Wed Jun 15 16:23:24 CDT 2016


> Le 13 juin 2016 à 17:26, Erica Sadun via swift-evolution <swift-evolution at swift.org> a écrit :
> 
> 
>> On Jun 13, 2016, at 9:23 AM, let var go via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> I am 100% with Charlie on this. Expressiveness has to do with the *effectiveness* of conveying a thought or a feeling.
>> 
>> Keep "where". It is expressive. It conveys a specific idea effectively and concisely.
> 
> For those of you in favor of retaining `where`, how do you feel about adding `while`, `until`, `unless`, etc?
> 
> — E

What I like is the possibility to iterate over a filtered list using a ‘single’ statement, not the keyword itself. If you propose to replace where by something less confusing, or add other keywords, I’m all for it.




More information about the swift-evolution mailing list