Program logic bugs vs input/environmental errors
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 31 20:38:57 PDT 2014
On 10/31/2014 5:38 PM, "Ola Fosheim Grøstad"
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> Transactions roll back when there is contention for resources and/or when you
> have any kind of integrity issue. That's why you have retries… so no, it is not
> only something wrong with the input. Something is temporarily wrong with the
> situation overall.
Those are environmental errors, not programming bugs, and asserting for those
conditions is the wrong approach.
More information about the Digitalmars-d
mailing list