Object serialization to arbitrary depth
mirkokiefer opened this issue · comments
Mirko Kiefer commented
Currently each object can declare the serialization depth of each of its members.
Somehow this doesn't feel right - knowledge about the depth of embedded objects should be internal to each object.
Solutions:
- don't have serialization depth but rather "normal" or "full" serialization
- make the serialization schema public
Making the schema public is the way to go. This isn't a problem as the serialization schema is independent to the internal schema. Another benefit is that the persisting store can make optimizations depending on the object's schema.
In this case the depth parameter would apply to the serialization schema and not the actual object's schema.
Mirko Kiefer commented
replaced by this issue:
https://github.com/livelycode/LivelyC/issues/5