Can your programming language do this?

Adam Ruppe destructionator at gmail.com
Tue Jan 25 08:44:53 PST 2011


> I know I keep beating this horse, but in other languages, this is the
> textbook example for why annotations are useful. Adding metadata to
> code, even if it can only be examined at compile time, can be
> immensely useful.

I agree, I think the @attrs should have been shorthand for
user defined templates, or at least available as a string list
through __traits. (this is one place where I disagree with the status quo quite a bit)

But, we can emulate it through mixins and strings, at least.


More information about the Digitalmars-d mailing list