new DIP5: Properties 2

Arthur Lloyd via at google.com
Tue Jul 28 11:31:39 PDT 2009


Ary Borenszweig Wrote:

> Definitely. I think attributes/annotations is the best solution for 
> this. It's also the most extensible way to do it. The lexer and parser 
> doesn't need to change for each new attribute. Maybe just the semantic pass.

That's ingenious. No need to change the lexer and parser when adding new "semi-keywords" and functionality. Since Java existed before C#, apparently this is something that Sun invented?



More information about the Digitalmars-d mailing list