Changes to User-Defined Attributes syntax
user1234
user1234 at 12.de
Wed Nov 20 09:43:40 UTC 2024
On Tuesday, 19 November 2024 at 04:26:17 UTC, Andrey Zherikov
wrote:
> ## Recap
>
> Current syntax (from [lang
> ref](https://dlang.org/spec/attribute.html#uda)):
> ```
> UserDefinedAttribute:
> @ ( TemplateArgumentList )
> @ TemplateSingleArgument
> @ Identifier ( NamedArgumentList[opt] )
> @ TemplateInstance
> @ TemplateInstance ( NamedArgumentList[opt] )
>
> [...]
Yes, I noticed a long time ago that you can declare
```d
alias F = float;
@F int i;
```
but not
```d
@float int i;
```
which proposal #2 would address.
More information about the dip.ideas
mailing list