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

Ahh, looks nice, here's hoping it gets stabilized
Fwiw there’s a small crate called guard which has provided this feature for several years.

I heartily endorse it.

Wow, this would definitely make it much cleaner!