Re:Things Rust shipped without
by yazaddaruvala on Friday July 03, 2015 @10:38PM
(#9828907)
If loops can have specialized control-flow keywords (break; continue), why not let match have one (fallthrough)?
However, I don't know yet how useful it would be. I can't remember ever really needing it, so it would probably need a few practical examples before it became a reality but its an idea.
[ Parent
| on HN ]
If we really need it I'd rather have C#-style goto-label instead of explicit fall-through, which is strictly less general. (But I'd almost rather it be a tail-duplicating macro to begin with, since the feature is so rarely needed.)