Comparing Exceptions and Errors
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sun Jun 5 07:28:57 UTC 2022
On Sunday, 5 June 2022 at 07:21:18 UTC, Ola Fosheim Grøstad wrote:
> You can make the same argument for an interpreter: if an assert
> fails in the intrrpreter code then that could be a fault in the
> interpreter therefore you should shut down all programs being
> run by that interpreter.
Typo: if an assert fails in the interpreted code, then that could
be a sign that the interpreter itself is flawed. Should you then
stop all programs run by that interpreter?
The point: in the real world you need more options than the
nuclear option. Pessimizing everywhere is not giving higher
satisfaction for the end user.
(Iphone keyboard)
More information about the Digitalmars-d-learn
mailing list