DIP6: Attributes
grauzone
none at example.net
Mon Aug 3 03:55:10 PDT 2009
Don wrote:
> Ary Borenszweig wrote:
>> http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP6
>
> This looks like a solution in search of a problem. What's the problem
> being solved?
Attaching additional data to types, that can't be specified otherwhere.
This should help with metaprogramming-like stuff.
For example serialization. How do you specify that a field shouldn't be
part of the serialized data? Java has an extra keyword attribute like
"transient" (comes from before attributes were introduced). C# uses what
we call annotation in this thread. How would you do this in D?
More information about the Digitalmars-d
mailing list