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

Paul Backus snarwin at gmail.com
Sun Feb 6 13:33:53 UTC 2022


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 @.


More information about the Digitalmars-d-announce mailing list