4 ms·
As am I. "try" as sugar for a simple return, and "catch" to capture the error value.
by deagle50 3y ago
As am I. "try" as sugar for a simple return, and "catch" to capture the error value.
- randomdata 3y agoHow is that any different from exception handlers, which are so-named because they are for carrying exceptions, not errors? Maybe you're leaving out the stack trace that one usually expects when propagating exceptions? I'm not sure that is meaningfully different, though.