Why exceptions for error handling is so important
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 13 16:37:56 PST 2015
On 1/11/2015 2:48 AM, Walter Bright wrote:
> However, if exceptions are thrown for errors instead, the programmer has to
> deliberately add code if he wishes to ignore the error.
Interesting that this article just appeared:
https://blog.golang.org/errors-are-values
by Rob Pike on error handling in Go. He concludes with:
"But remember: Whatever you do, always check your errors!"
Which sums up why exceptions are better!
More information about the Digitalmars-d
mailing list