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

"if_ok!" is designed to handle this. It's basically the equivalent of monadic do, but works better with the control flow structures of Rust.


Is there a location in the docs that lists and describes the built-in macros in Rust? They don't appear to be findable using the stdlib search, and the Macros tutorial doesn't seem to talk about built-ins.

Also, this post forced me to read the docs a bit more thoroughly and realize that I haven't been distinguishing between Option and Result. Thanks




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

Search: