DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sun Feb 6 14:44:40 UTC 2022


On Sunday, 6 February 2022 at 13:33:53 UTC, Paul Backus wrote:
> On Sunday, 6 February 2022 at 10:55:20 UTC, Daniel N wrote:
>>
>> Guess I'm way too late, I just find it very strange you 
>> settled on mixedCase, it's not used for anything else. 
>> (nothrow @nogc). I also don't agree with the motivation that 
>> @use is hard to search for because @ is an unusual symbol.
>
> @mustUse is a user-defined attribute, and the official style 
> guide says that names of UDAs should be camelCased:

It is kinda confusing to call it a user-defined attribute if it 
is recognized by the compiler.

I dislike the camel case as well, and the name is less clear than 
"nodiscard" in my opinion.




More information about the Digitalmars-d-announce mailing list