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

Paolo Invernizzi paolo.invernizzi at gmail.com
Sun Feb 6 13:40:00 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:
>
> https://dlang.org/dstyle.html#naming_udas
>
> "Hard to search for" in this context means "hard to Google 
> for", not "hard to grep for". Search engines tend to ignore 
> symbols like @.

... This matches conventions of the built in attributes like 
@safe,  __ at nogc__  ...




More information about the Digitalmars-d-announce mailing list