News for hackers. Stuff that matters.
Re:A half-hour to learn Rust by nightcracker on Saturday February 29, 2020 @06:15AM (#22450063)
Underscore can also be the equivalent of a wildcard in pattern matching.
Re:A half-hour to learn Rust by saghm on Saturday February 29, 2020 @01:30PM (#22452077)
I think that's the same thing as in let bindings; just like you can bind to a name in the wild card case, you can also choose not to bind to it. The main difference is that not binding in the wild card case is more common than in `let` bindings.