@betterC, @TestBetterC , @betterCTest or @("betterC") to annotate Phobos's unittests?
Seb
seb at wilzba.ch
Tue Jul 31 17:07:05 UTC 2018
On Tuesday, 31 July 2018 at 10:09:08 UTC, Jacob Carlborg wrote:
> Shouldn't be any conflict because the "betterC" symbol would be
> in a different module.
> ...
> I would say, if it's only for internal use then it can be
> placed in `std.internal` with the `package` protection. If you
> want this to be used outside of Phobos then I recommend putting
> it in `core.attribute` in druntime, since that already exists.
Cool! std.internal.attributes and @betterC it is then:
https://github.com/dlang/phobos/pull/6645
This should allow to gradually annotate more unittests in Phobos
with @betterC (like we did with @safe or @nogc), and allow us to
gradually increase the -betterC subset.
More information about the Digitalmars-d
mailing list