Postmortem: Template unittests are bad & you shouldn't catch Error

Jacob Carlborg doob at me.com
Fri Oct 23 09:21:18 UTC 2020


On Thursday, 22 October 2020 at 20:33:45 UTC, Paul Backus wrote:

> Once an Error has been thrown, the program is in an invalid 
> state

No, not if it's an `AssertError` that occurs inside a `unittest` 
block [1]

[1] https://dlang.org/spec/unittest.html

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list