A rationale for pure nothrow ---> @pure @nothrow (and nothing

bearophile bearophileHUGS at lycos.com
Sat Feb 27 10:26:33 PST 2010


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.

Bye,
bearophile



More information about the Digitalmars-d mailing list