2 ms·
Rust's macro system is not what makes its "system equivalent to checked exceptions" bearable. That the language provides tools to operate on both results thems
by masklinn 6y ago
Rust's macro system is not what makes its "system equivalent to checked exceptions" bearable.
That the language provides tools to operate on both results themselves and their content (in part because results are reified and thus normal values of the language, and in part because specific tooling like `?`) is what does that.
Also that there is no issue of misclassification as in Java, because everything is a result and that's that.