DIP64: Attribute Cleanup

Chris Cain via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 21 11:11:30 PDT 2014


On Saturday, 21 June 2014 at 18:07:25 UTC, Temtaime wrote:
> Too many attributes in D.
> In C++ there is no pure, safe, trusted and others.
>
> And it's C++ that shows that almost all of D attributes are not 
> necessary.
>
> Welcome to attribute hell !

Of course. But pure/safe/trusted/others statically verify that 
huge classes of errors cannot occur and make reasoning about code 
much easier. You're correct that it's not necessary, but they're 
certainly desirable in many ways.

I'd willfully trade bug hell for "attribute hell".


More information about the Digitalmars-d mailing list