[swift-evolution] [Pitch] Introduce continue to switch statements

Rob Mayoff mayoff at dqd.com
Mon Jul 11 08:27:20 CDT 2016


Just to be clear, under your proposal, what does the following program
print? Can you make an argument in favor of your interpretation?

    var x = 1
    switch x {
    case 1:
        print("one")
        x = 2
        continue
    case 2:
        print("two")
    default:
        break
    }


More information about the swift-evolution mailing list