On 2013-02-12 22:40, Walter Bright wrote:
The existence of UDAs should dramatically affect the design of a serialization library.
It didn't dramatically affect my serialization library. I already used a poor man's implementation of UDAs, perhaps that's why.
Without UDA:
class Foo
{
int a;
int b;
mixin NonSerialized!(b);
}
With UDA:
class Foo
{
int a;
@nonSerialized int b;
}
The UDAs just add some syntax sugar.
--
/Jacob Carlborg
