Re:Ask HN: Will Rust ever become a mainstream systems progra...
by dpc_pw on Monday April 10, 2017 @07:23PM
(#14083458)
Many people sooner or later have to spend an evening/night debugging serious issue affecting critical production system, discovering that system is left in inconsistent state after some corner case is throwing an exception that the code between it and the catch block didn't anticipate/handle correctly. And then they become emotionally invested.
[ Parent
| on HN ]
Re:Ask HN: Will Rust ever become a mainstream systems progra...
by soulbadguy on Monday April 10, 2017 @08:26PM
(#14083791)
> 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.
Re:Ask HN: Will Rust ever become a mainstream systems progra...
by dpc_pw on Monday April 10, 2017 @08:51PM
(#14083957)
No 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