3 ms·
Check out the code that goes along the "no try! for Option" comment in the OP: it is implementing a custom iterator.
by glandium 10y ago
Check out the code that goes along the "no try! for Option" comment in the OP: it is implementing a custom iterator.
- catnaroek 10y agoOh, my bad. I guess `try!` isn't a good enough replacement for properly treating `Option` and `Result` as monads.