RFC: DIP draft for "Compiler-defined Attribute Consistency"

Dennis dkorpel at gmail.com
Wed Jul 14 18:01:15 UTC 2021


On Wednesday, 14 July 2021 at 17:45:34 UTC, user1234 wrote:
> On Wednesday, 14 July 2021 at 16:18:21 UTC, Dennis wrote:
>> On Wednesday, 14 July 2021 at 15:54:06 UTC, user1234 wrote:
>>> I'm worried not to see `@const` and `@inout`.
>>
>> Those are type constructors, not attributes.
>
> I reffered about the [attribute form of 
> const](https://dlang.org/spec/attribute.html#const), e.g we 
> would have

I didn't know the spec considers them attributes, I stand 
corrected. I still think it's a separate proposal though, since 
this DIP is about consistency among function attributes, not the 
confusing syntax of member functions with type attributes.




More information about the Digitalmars-d mailing list