3 ms·
Exceptions are merely a syntax for a monad that can be trivially implemented as simply automatic syntax sugar for the bloated error result code stuff Rust is no
by saurik 6y ago
Exceptions are merely a syntax for a monad that can be trivially implemented as simply automatic syntax sugar for the bloated error result code stuff Rust is not only forcing at runtime (having every single function call return a successful error code result is _not free_) but requiring the user to explicitly type out while coding; if you are willing to swallow the former (which to me is silly, but Rust is already doing this) you can at least handle the latter, and you don't need "runtime support" to make it happen: it is a code generation issue and nothing more.
- steveklabnik 6y agoThat code you generate is what “runtime support” means, yes.