On 06/20/2014 09:22 PM, 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.
Why not make the built-in attributes proper symbols instead and use
alias Seq(T...)=T;
alias spiffy = Seq!(pure,nothrow,safe);
float mul(float a, float b) @spiffy{ }
?
This will also allow use cases such as passing attributes by alias.