2 ms·
Rust error-handling https://doc.rust-lang.org/book/error-handling.html https://doc.rust-lang.org/book/error-handling.html - Result is just an ordinary type defi
by lmm 11y ago
Rust error-handling https://doc.rust-lang.org/book/error-handling.html https://doc.rust-lang.org/book/error-handling.html - Result is just an ordinary type defined in the language. Whereas go's "if err, res" stuff is special-cased - e.g. you can't use your own custom representation of error vs not.