[swift-evolution] [Pitch] Introduce continue to switch statements
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”.
> 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
> 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...
More information about the swift-evolution