serializing an immutable object
Jul. 20th, 2011 05:40 pmSpent like an hour trying to figure out how to serialize to json the object I build from json (to pass around the network); then it occurred to me it's immutable. Why not keep the source, eh. Like class files, they'd be happier if they just had the source code accompanying them naturally somewhere, eh.
So there. I just store the object's own source. Neat, eh.
So there. I just store the object's own source. Neat, eh.