3 ms·
rust solved this itch in a wonderful way via the match operator. match has some powerful semantics that let it select branches beyond just a pure bool in the c
by cdaringe 8y ago
rust solved this itch in a wonderful way via the match operator. match has some powerful semantics that let it select branches beyond just a pure bool in the conditional expression (e.g. value in some range?)
https://doc.rust-lang.org/book/ch06-02-match.html https://doc.rust-lang.org/book/ch06-02-match.html