assert semantic change proposal
Sean Kelly via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 7 09:51:22 PDT 2014
On Thursday, 7 August 2014 at 07:57:14 UTC, Johannes Pfau wrote:
>>
>> Attempting to continue operating is irresponsible if the
>> program is doing or can do anything important.
>
> Again: unittests?
unittests shouldn't use assert. Or alternately, we can have
onAssertError (the assertion failure callback) do something
different if unit testing is taking place than when the program
is actually running.
More information about the Digitalmars-d
mailing list