Unit tests in D

Don nospam at nospam.com
Thu May 6 06:33:38 PDT 2010


bearophile wrote:
> Don:
> 
> I didn't mean to put my words in your mouth, sorry. I'll try to be more careful.
> 
>> Also an attribute is a terrible way to implement almost anything -- you need a really good reason to add a new attribute.<
> 
> You have noticed that some of the things I have proposed in the last months use attributes. I don't know why attributes are so bad, I like the idea of user-defined attributes too (for D3), in C# they are useful.
> 
> Bye,
> bearophile

The thing is, they're not really any different to keywords in how 
difficult they make the language to learn, in how much complexity they 
add to the compiler, and in how much complexity they add to the spec.
We could even add an @ to the start of every existing keyword, and then 
argue that the language has no keywords at all! So we still need to be 
reluctant to add any new ones.


More information about the Digitalmars-d mailing list