Custom attributes (again)
Jacob Carlborg
doob at me.com
Fri Apr 6 05:47:47 PDT 2012
On 2012-04-06 12:12, Walter Bright wrote:
> I don't see the need for creating a new kind of symbol.
If you create a new symbol, i.e. "Foo" then it would obey the normal
look up rules.
> This is a runtime system.
Says who? It doesn't need to be in D.
> I don't see that it is cleaner - there's no particular reason why a new
> symbol type needs to be introduced.
For attributes with a single value this syntax sugar can be allowed (and
is in Java):
@serialize("Foo") int x;
I think that is clean.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list