Program logic bugs vs input/environmental errors

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 9 10:31:31 PDT 2014


On Thursday, 9 October 2014 at 16:33:53 UTC, Johannes Pfau wrote:
> I think Walter sometimes suggested that it would be valid for a
> compiler to not unwind Errors at all (in release mode), but 
> simply kill
> the program and dump a error message. This would finally allow 
> us to
> optimize nothrow functions.

I think this is reasonable in general but as long as assert 
throws Error and assert is encouraged to be used in unittest 
blocks such implementation would mark compiler as unusable for me.

We may need to have another look at what is truly an Error and 
what is not before going that path.


More information about the Digitalmars-d mailing list