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

Paolo Invernizzi paolo.invernizzi at gmail.com
Sun Feb 6 14:32:31 UTC 2022


On Sunday, 6 February 2022 at 14:00:15 UTC, Paul Backus wrote:
> On Sunday, 6 February 2022 at 13:40:00 UTC, Paolo Invernizzi 
> wrote:
>> On Sunday, 6 February 2022 at 13:33:53 UTC, Paul Backus wrote:
>>>
>>> @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
>>
>> ... This matches conventions of the built in attributes like 
>> @safe,  __ at nogc__  ...
>
> Presumably this is referring to the part about the first letter 
> being lower-case, since the built-in attributes are quite 
> obviously not camelCased.

While I like a lot and welcome the addition of this attribute (so 
thank you!), I humbly  ask to reconsider using   the full 
lowercase alternative instead of camel case.

Let's conform with the other built-in attributes listed into the 
specs of the language, avoiding what would be another special 
case to remember.




More information about the Digitalmars-d-announce mailing list