Program logic bugs vs input/environmental errors

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 28 10:49:10 PDT 2014


On 9/28/14, 10:36 AM, Walter Bright wrote:
> On 9/28/2014 2:28 AM, bearophile wrote:
>>> And for exceptions I agree completely with your arguments and I think
>>> that
>>> there is no need for stack.
>> I think Walter is not suggesting to remove the stack trace for
>> exceptions.
>
> I suggest removal of stack trace for exceptions, but leaving them in for
> asserts.
>
> Asserts are a deliberately designed debugging tool. Exceptions are not.

I'm fine with that philosophy, with the note that it's customary 
nowadays to inflict things like the stack trace on the user. -- Andrei



More information about the Digitalmars-d mailing list