|
|
|
|
|
by koenigdavidmj
3628 days ago
|
|
Most of this should be obviated when the ? operator is ready. But until then, there is no primitive for 'work on the type you wrapped in Option, short-circuiting and returning None at the first sign of failure', so it has to be done in the library. |
|
With "?" and "try!()", Rust is sort of emulating exceptions in a weird way.