[swift-evolution] [DRAFT] Regularizing Where Grammar (was Re: Add a while clause to for loops)

Roth Michaels roth at rothmichaels.us
Fri Jun 10 15:45:11 CDT 2016


On Fri, Jun 10 2016 at 03:42:34 PM, Christopher Kornher via swift-evolution <swift-evolution at swift.org> wrote:
> -1 
>
> An alternative would be to:
>
> 1) State clearly in all relevant documentation that ‘where’ filters and
> ‘while’ terminates.
> 2) Eliminate the use of ‘where’ within ‘while’ clauses.

So `where` could be replaced with `,` in `while` statements making the
filtering elsewhere more clear.

This might be a nicer solution than the previously discussed
`for in where else` syntax.  

--
Roth



More information about the swift-evolution mailing list