Why exceptions for error handling is so important

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 12 12:52:51 PST 2015


On 1/12/2015 10:06 AM, Tobias Müller wrote:
On Mon, Jan 12, 2015 at 05:22:26PM +0000, Adam D. Ruppe via Digitalmars-d wrote:
>> Yeah, exceptions are supposed to be ... well, *exceptions*, rather than
>> the norm. :-) If you're using exceptions to do flow control, you're
>> doing something wrong.
>
> But what's exceptional for you is normal for me.

It's not a subjective truth, it's an objective fact.

If code is throwing exceptions as part of its normal operation, it is designed 
wrong.

And yes, if you take that as a challenge to try and concoct a counterexample, 
the point still stands :-)



More information about the Digitalmars-d mailing list