Example unittests?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Oct 17 13:20:58 UTC 2022
On Monday, 17 October 2022 at 12:55:02 UTC, Adam D Ruppe wrote:
> The doc comment gives you a place to write an explanation
> too... even if you had a @ddoc uda you'd probably still want
> the /// explanation text. So the uda doesn't gain much.
Technically that could still work, for example:
```d
struct ddoc(alias symbol, string comment) { ... }
@ddoc!(Queue, "Simple example")
unittest {
...
}
```
But that's probably ugly. And comments and strings are typically
highlighted in different shades of colors in editors..
More information about the Digitalmars-d
mailing list