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

Sean Heber sean at fifthace.com
Mon Jun 13 09:11:10 CDT 2016


> On Jun 13, 2016, at 9:05 AM, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> 
> On Mon, Jun 13, 2016 at 8:58 AM, Charlie Monroe <charlie at charliemonroe.net> wrote:
> if-continue. But I gladly took upon for-in-where as soon as I found out about it since it's more expressive and simply is less typing.
> 
> I don't think we use the term 'expressive' in the same way. I understand it to mean that permitting the expression of more things. But of course, `where` does only a subset of `guard...continue` or `if...continue`; thus, less expressive.

The fact that you could simply use the words “I am happy” to express the concept of being happy does not mean that writing a complex poem that also conveys happiness should therefore be prohibited.

l8r
Sean



More information about the swift-evolution mailing list