Orange - Free from D1/Tango
H. S. Teoh
hsteoh at quickfur.ath.cx
Sun Feb 17 13:43:26 PST 2013
On Sun, Feb 17, 2013 at 01:18:05PM -0800, Walter Bright wrote:
> On 2/17/2013 12:51 PM, Jacob Carlborg wrote:
> >I just stripped out all D1 and Tango related code from Orange.
> >D1/Tango is still supported in the d1 branch. Hopefully this will
> >make it easier to integrate into Phobos.
> >
> >It also now supports UDA's for indicating a field/class/struct
> >shouldn't be serialized:
> >
> >class Foo
> >{
> > @nonSerialized int a;
> >}
> >
> >@nonSerialized class Bar { }
>
> Hmm, shouldn't it be the other way around - marking the ones to be
> serialized?
I believe the purpose of the library is to provide convenient saving /
loading of objects (among other things), so you want most of your data
serialized, and non-serialized fields are the exception rather than the
norm. So it makes sense to serialize by default and mark out fields
that shouldn't be serialized.
T
--
"640K ought to be enough" -- Bill G., 1984. "The Internet is not a
primary goal for PC usage" -- Bill G., 1995. "Linux has no impact on
Microsoft's strategy" -- Bill G., 1999.
More information about the Digitalmars-d
mailing list