[swift-evolution] [Pitch] Introduce continue to switch statements
Chris Lattner
clattner at apple.com
Mon Jul 11 17:49:07 CDT 2016
As for all of the other additive changes, I would strongly prefer you to *wait* on even proposing or discussing these things until after the Swift 3.0 evolution cycle is done. Not only is it distracting for the community, but the core team and many others won’t be be able to even read the thread or the responses, thus your discussion cycle will be lacking key input.
On this topic, we specifically discussed this when labeled breaks were being designed, and when they were expanded to “do” in Swift 2. We specifically decided to allow break but not continue, because we didn’t want these control flow statements to be “another way to spell a loop”.
-Chris
> On Jul 10, 2016, at 7:27 PM, Erica Sadun via swift-evolution <swift-evolution at swift.org> wrote:
>
> A quick pitch to introduce `continue` to switch statements. This would be additive and could not be considered for Swift 3.
>
> -- E
>
> Pitch: Introduce continue to Switch Statements
>
> <https://gist.github.com/erica/04835de3d3d9121ef7308dd9b093158a#introduction>Introduction
>
> This pitch completes the switch statement's control flow transfer suite by introducing continue. Doing so provides functionality that a large portion of newer developers expect from (but do not get from) fallthrough.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160711/d5cf546d/attachment.html>
More information about the swift-evolution
mailing list