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

Jacob Carlborg doob at me.com
Fri Oct 23 09:11:45 UTC 2020


On Thursday, 22 October 2020 at 16:39:48 UTC, Paul Backus wrote:

> It seems like the obvious solution is to remove this 
> limitation. For example, maybe the documentation generator 
> should allow you to attach a unittest to any symbol in the same 
> module, regardless of where it appears in the code:
>
> /// Documents: Nullable.get
> unittest
> {
>     /* etc. */
> }

I like that.

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list