2 ms·
> it doesn't need to special-case errors at the language level Could you explain this? A lack of explanation makes it seem flippant and is probably why your co
by nindalf 11y ago
> it doesn't need to special-case errors at the language level
Could you explain this? A lack of explanation makes it seem flippant and is probably why your comment is greyed out.
- lmm 11y agoRust 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.