Program logic bugs vs input/environmental errors

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 1 06:55:40 PDT 2014


On 10/1/14 9:47 AM, Bruno Medeiros wrote:
> On 29/09/2014 19:58, Steven Schveighoffer wrote:
>> Any uncaught exceptions are BY DEFINITION programming errors.
>
> Not necessarily.
> For some applications (for example simple console apps), you can
> consider the D runtime's default exception handler to be an appropriate
> way to respond to the exception.
>

No, this is lazy/incorrect coding. You don't want your user to see an 
indecipherable stack trace on purpose.

-Steve


More information about the Digitalmars-d mailing list