4 ms·
> code between it and the catch block didn't anticipate/handle correctly This sounds like a general errors handling issue that nor exceptions nor monadic error
by soulbadguy 10y ago
> code between it and the catch block didn't anticipate/handle correctly
This sounds like a general errors handling issue that nor exceptions nor monadic errors types can prevent.
- dpc_pw 10y agoNo language can fix mistakes, but in Rust if you have a() calling b() which calls c(), there is no way* that c can jump to a without any indication of it in b. You at least need to have `?` somewhere in b. I consider it a really good thing, among other advantages. * panic + catch_unwind, but that's special and not meant or used in practice for error handling
- mmstick 10y agoRust requires at compile-time that you handle each case.