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


(Anton Zhilin) #1

+1 to the proposal.
All arguments and counter-arguments are simple and understandable.
I think, we should just schedule a review, and Core team will make final
decision.

Also, we should think about removing `where` from `while` loops.
We can copy `if` syntax to `while` conditions.

- Anton


(Brent Royal-Gordon) #2

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


(Anton Zhilin) #3

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@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


(Xiaodi Wu) #4

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@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@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