DIP64: Attribute Cleanup

Kapps via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 21 01:52:07 PDT 2014


On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote:
> http://wiki.dlang.org/DIP64
>
> Attributes in D have two problems:
> 1. There are too many of them and declarations are getting too 
> verbose
> 2. New attributes use @ and the old ones do not.
>
> I've created a DIP to address these issues.

I agree that the lack of consistency with @ is annoying, and was 
especially annoying when I was starting to learn D. Having to 
look up every time whether you need an @ is the type of 
inconsistent baggage that D should not have.


I do like the idea of attribute sets, but I'm not sure if others 
will as it could be somewhat confusing. For example, if 
final(false) gets in, the first thing I would be doing is making 
an attribute set @virtual that just expands to @final(false) 
(incidentally, this would make me much less opposed to the 
final(false) syntax).


More information about the Digitalmars-d mailing list