DIP6: Attributes

Kagamin spam at here.lot
Tue Aug 4 02:56:10 PDT 2009


Don Wrote:

> > To answer Don's point, there is nothing saying that the compiler can't 
> > read attributes and change its behavior.  Of course, those would have to 
> > be builtin attributes.
> 
> Yes, but then they're just keywords, with an @ in front. You'd just be 
> kidding yourself if you think you've reduced the keyword count.

The problem with keywords is they're global. Why do you think there is module std.string, but there isn't core.stdc.wchar? It's because string is not a keyword, while wchar is. And annotations are also identifiers (though predefined, like Object) rather than keywords.



More information about the Digitalmars-d mailing list