Kagamin wrote:
Andrei Alexandrescu Wrote:

What prevents us from doing
more generic annotations with syntax like @property?

Walter. No one's been able to convince him they're useful.
Then someone better put forward a good argument.

.Net framework is one big good argument, here are some usecases:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=94070
http://msdn.microsoft.com/en-us/library/xtwkdas5.aspx

How do you plan to control serialization? Renaming elements? Serializing to 
attributes? Defining namespaces?

List of attributes and their usage:
http://msdn.microsoft.com/en-us/library/system.attribute.aspx#familyToggle

Sorry, I misread - I was still referring to properties in particular.

Andrei

Reply via email to