[swift-evolution] Random ideas: goto, loop, multiple dispatch, explicit aliasing
brent at architechies.com
Sat Jul 2 22:17:43 CDT 2016
> On Jul 2, 2016, at 6:27 PM, Daryle Walker via swift-evolution <swift-evolution at swift.org> wrote:
> I would also propose a “goto LABEL case EXPRESSION,” where the LABEL marks a “switch” statement that surrounds the goto statement and reevaluates the switch with the new value. This would help with case jumping too complex for “fallthrough” to work (including jumping FROM a “default” case).
Something like this was discussed at one point; I believe people referred to it as `reswitch`.
In general, you're not going to get very far by naming a bunch of features and asking if we should have them. Show us motivating examples. Help us understand what you want them for. (And if you don't know why you'd want them, well, why are you proposing them?)
More information about the swift-evolution