Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mintplant
on Nov 3, 2022
|
parent
|
context
|
favorite
| on:
Rust 1.65.0
Without let-else, you could write that as:
let foo_unwrapped = match foo { Some(foo_unwrapped) => foo_unwrapped, None => return, };
Not as pretty, but you don't have to unwrap.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: