unittest "name" {}

Steven Schveighoffer schveiguy at gmail.com
Sat Feb 11 04:49:48 UTC 2023


On 2/10/23 5:24 PM, Dennis wrote:
> On Friday, 10 February 2023 at 21:48:00 UTC, Steven Schveighoffer wrote:
>> I personally am fine with the requirements to use a UDA.
>>
>> And I also prefer the simple "first string" method,
> 
> My proposal is purely syntactic sugar, it's exactly the same as adding a 
> first string UDA.

In that case, I'm not in favor of it. I don't think the first form is so 
much worse that it needs adjusting:

```d
// existing
@("foo") unittest {
    ...
}

// proposed
unittest "foo" {
    ...
}
```

-Steve


More information about the Digitalmars-d mailing list