Y
Hacker News
new
|
ask
|
show
|
jobs
by
mintplant
1317 days ago
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.