Why exceptions for error handling is so important

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 11 23:19:44 PST 2015


On 1/11/2015 11:09 PM, Tobias Müller wrote:
> - Error codes are automatically ignored
> - Exceptions are automatically propagated
>
> IMO both are not ideal and lead to sloppy programming.
> Ignoring errors is of course worse than aborting where you could have
> handled the error.
>
> Rust-style "packed" errors are nice because you are forced to think about
> the correct handling.


I don't think this is an answer to my point.


More information about the Digitalmars-d mailing list