What's missing from Phobos for Orbit (package manager)
Jacob Carlborg
doob at me.com
Tue Feb 12 23:37:17 PST 2013
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
More information about the Digitalmars-d
mailing list