Sutter's ISO C++ Trip Report - The best compliment is when someone else steals your ideas....
Walter Bright
newshound2 at digitalmars.com
Tue Jul 3 04:54:46 UTC 2018
On 7/2/2018 7:53 PM, John Carter wrote:
>> Step 2 is to (gradually) migrate std:: standard library precondition
>> violations in particular from exceptions (or error codes) to contracts. The
>> programming world now broadly recognizes that programming bugs (e.g.,
>> out-of-bounds access, null dereference, and in general all
>> pre/post/assert-condition violations) cause a corrupted state that cannot be
>> recovered from programmatically, and so they should never be reported to the
>> calling code as exceptions or error codes that code could somehow handle.
>
> Ah, that's a really nice statement.
So, I have finally convinced the C++ world about that! Now if I can only
convince the D world :-)
(I'm referring to the repeated and endless threads here where people argue that
yes, they can recover from programming bugs!)
More information about the Digitalmars-d
mailing list