DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted
bauss
jj_1337 at live.dk
Mon Feb 7 10:05:14 UTC 2022
On Monday, 7 February 2022 at 05:09:23 UTC, Paul Backus wrote:
> On Monday, 7 February 2022 at 05:05:27 UTC, forkit wrote:
>> my only concern is the capital U, in @mustUse
>>
>> This seems a little inconsistent with current attributes??
>>
>> e.g:
>>
>> nogc
>> nothrow
>> inout
>>
>> https://dlang.org/spec/attribute.html
>>
>> also, nodiscard would actually seem more logical, given the
>> above as well.
>>
>> I bet you, people will be thinking nodiscard, but will have to
>> remember to type, @mustuse, only to have the compiler
>> complain, that its' actually @mustUse
>
> See my previous replies on this topic:
>
> https://forum.dlang.org/post/xgdwevkxqapljcvyjwtx@forum.dlang.org
> https://forum.dlang.org/post/yxoinjtarkuotnlncyqw@forum.dlang.org
This is one of those cases where I think there should be an
exception to the "rule" you so blindly want to follow.
@mustuse is so much better and makes code so much more consistent.
More information about the Digitalmars-d-announce
mailing list