Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
orlp
on Feb 29, 2020
|
parent
|
context
|
favorite
| on:
A half-hour to learn Rust
Underscore can also be the equivalent of a wildcard in pattern matching.
saghm
on Feb 29, 2020
[–]
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.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: