Program logic bugs vs input/environmental errors

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 16 11:49:13 PDT 2014


On 10/16/2014 6:46 AM, Sean Kelly wrote:
> On Thursday, 16 October 2014 at 07:44:37 UTC, Walter Bright wrote:
>> Don't throw Errors when you need to unwind. Throw Exceptions. I.e. use
>> enforce() instead of assert().
>
> I'm more concerned about Phobos. If it uses nothrow and asserts in preconditions
> then the decision has been made for me.

Which function(s) in particular?


More information about the Digitalmars-d mailing list