bearophile wrote:
grauzone:
Apparently, this attribute syntax makes no sense at all. I suggest we simply remove it and use normal keywords instead.

Currently D2 attributes are not necessary, they can be replaced by keywords, 
but keywords don't scale if you want to define many new attribute-like things, 
attach them some user-defined semantics, etc. If you have used C#/Java you know 
some of their usages. So I think D2 attributes are mostly meant for future 
expansions.

It would be interesting to know whether Walter/Andrei plan to add user defined attributes later. But then, user attributes clashing with compiler defined ones will be the problem.

Right now, the attribute syntax seems to be some sort of keyword parking site and/or graveyard.

Bye,
bearophile

Reply via email to