|
|
|
|
|
by yazaddaruvala
3997 days ago
|
|
If loops can have specialized control-flow keywords (break; continue), why not let match have one (fallthrough)? match x {
0 => { /* do some stuff */; fall_through; },
1 => true,
_ => false
}
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. |
|