|
|
|
|
|
by Someone
4180 days ago
|
|
Ad 1): if you don't know at compile time what kind of objects you will deserialize, you need to do more than generate the serialization code; you also need to generate the class. So, basically, you need the entire schema compiler. I still don't see why separating those two generation steps is a gain. Ad 2): does this mean that one can also do efficient schema migration at deserialization time (rename fields, add fields with default values), or that one can deserialize to something else than the class that got generated when the schema was compiled? |
|
2) You can do both. You can also do type safe transformations/aggregations/etc on serialized data w/o materializing any object.