4 ms·
Nope, the question mark operator is syntax sugar for the "if error, return it" dance. (Cf. https://doc.rust-lang.org/edition-guide/rust-2018/error-handling-and
by dilap 6y ago
Nope, the question mark operator is syntax sugar for the "if error, return it" dance.
(Cf. https://doc.rust-lang.org/edition-guide/rust-2018/error-handling-and-panics/the-question-mark-operator-for-easier-error-handling.html https://doc.rust-lang.org/edition-guide/rust-2018/error-hand...)