Why do some language-defined attributes have @ and some not?

Chris Williams via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 24 16:38:38 PDT 2014


On Thursday, 23 October 2014 at 07:39:21 UTC, Gary Willoughby
wrote:
> On Thursday, 23 October 2014 at 00:59:26 UTC, Shriramana Sharma 
> via Digitalmars-d-
>> I submit that the syntax for attributes should be streamlined. 
>> Shall I
>> go and open a Bugzilla item?
>
> No need: http://wiki.dlang.org/DIP64

Besides the @ symbols, isn't there also some inconsistency on
whether attributes go before or after the declaration?

@property public static void foo() const @safe pure nothrow

I've never bothered to ascertain how much of the positioning is
optional, but definitely none of it makes sense.


More information about the Digitalmars-d-learn mailing list