This proposal completes the switch statement's control flow transfer suite by introducing continue
. This change adds functionality that many developers expect (but do not get) from fallthrough
.
At this time, Swift does not allow pattern matching and execution to continue within the scope of the current switch
statement. A case can fallthrough
to execute the next clause but it cannot resume pattern matching. The fallthrough
executes the next case clause regardless of whether the value matches its pattern or not.