[swift-evolution] [Pitch] Retiring `where` from for-in loops
Xiaodi Wu
xiaodi.wu at gmail.com
Mon Jun 13 17:37:50 CDT 2016
Not the only, actually, but close. There's still `case ... where` and
`catch ... where`; this proposal offers some suggestions on that.
On Mon, Jun 13, 2016 at 4:16 PM, Антон Жилин <antonyzhilin at gmail.com> wrote:
> Ah, I see. Then for-each will be the only usage of `where`, aside from
> generics. I'm even more in favour of the proposal being discussed, then.
>
> - Anton
>
> 2016-06-13 23:03 GMT+03:00 Brent Royal-Gordon <brent at architechies.com>:
>
>> > Also, we should think about removing `where` from `while` loops.
>> > We can copy `if` syntax to `while` conditions.
>>
>> SE-0099 applies to all constructs which use condition clauses, including
>> `while`. The "Detailed Design" section even specifically mentions the
>> `while` grammar rule. <
>> https://github.com/apple/swift-evolution/blob/master/proposals/0099-conditionclauses.md#detailed-design
>> >
>>
>> --
>> Brent Royal-Gordon
>> Architechies
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160613/bbf202ca/attachment.html>
More information about the swift-evolution
mailing list