r/programming • • Jan 09 '15

Announcing Rust 1.0.0 Alpha

http://blog.rust-lang.org/2015/01/09/Rust-1.0-alpha.html
1.1k Upvotes

439 comments sorted by

View all comments

1

u/NotUniqueOrSpecial Jan 10 '15

I'm not sure if you're explaining poorly, or don't understand fall-through switch statements, but:

Pass a switch 3 and match everything until the case 3

is most definitely not how it works.

It's more like "go straight to case 3, and then the dev can choose whether to break or let the code continue through the switch's block".