Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust is getting let-else to solve that problem: https://rust-lang.github.io/rfcs/3137-let-else.html



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!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: