std.serialization: pre-voting review / discussion

Jacob Carlborg doob at me.com
Mon Sep 23 01:55:33 PDT 2013


On 2013-09-21 14:48, mrd wrote:

> What is the purpose of the "keys"?

Fields are looked up by name. This is to avoid a dependency of the order 
of the fields. I guess I can look up by field order instead and fallback 
to a name look up if a name don't match.

> If they really needed, can it be realised as option and disable them?
> (I see also that they are forces to add a lot of duplicate functions.)

Yeah, I guess so.

> I guess if it succeeded binary format can be made very compact (and
> possibly faster) as Protocol Buffers.

I'm working on a binary archive as well. It ignores the name and look up 
by field order instead. It assume that the archived data and the 
class/struct has the same field order.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list