Register based error-handling?
via Digitalmars-d
digitalmars-d at puremagic.com
Thu Nov 6 04:17:48 PST 2014
On Thursday, 6 November 2014 at 09:36:38 UTC, Nemanja Boric wrote:
> Maybe you could consider something like returning `Result<Ok,
> Err>` (like in Rust) which will make you not forget to check
> for return code.
Yes, but that is too syntax heavy. I want a language builtin that
is non-intrusive.
Not having the logic of the program polluted by error handing is
a significant advantage of regular exceptions (and what they were
intented for).
More information about the Digitalmars-d
mailing list