<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 20, 2017, at 12:22 PM, Dave Abrahams via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="Singleton"><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class="">Yeah, maybe there's a more general language feature that could replace 'fallthrough' here. Instead<br class="">of labelling cases, we could support a 'reswitch' statement that redispatches the switch to the case<br class="">matching the operand:<br class=""><br class=""> switch some_value {<br class=""> case .REFINED:<br class=""> if !validate(some_value) { return NULL }<br class=""> reswitch .BASE<br class=""><br class=""> case .BASE:<br class=""> handle_enum_value();<br class=""> }<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">We should just call a spade a spade and spell that "goto" ;-)</span><br class=""></div></div></blockquote><br class=""></div><div>Goto has traditionally been used for unstructured control flow, but this form is still fully structured. You cannot produce irreducible loops, jump into scopes, over declarations, etc.</div><div><br class=""></div><div>-Chris</div></body></html>