Y
Hacker News
new
|
ask
|
show
|
jobs
by
johntb86
1442 days ago
Rust is getting let-else to solve that problem:
https://rust-lang.github.io/rfcs/3137-let-else.html
2 comments
Macha
1442 days ago
Ahh, looks nice, here's hoping it gets stabilized
link
masklinn
1442 days ago
Fwiw there’s a small crate called guard which has provided this feature for several years.
I heartily endorse it.
link
Cyph0n
1442 days ago
Wow, this would definitely make it much cleaner!
link