std.serialization: pre-voting review / discussion

Jacob Carlborg doob at me.com
Mon Sep 23 01:52:11 PDT 2013


On 2013-09-21 15:13, mrd wrote:

> Is this the right way?
>
> There are special formats (Protocol Buffers, for example) for a binary
> format what can be changed over time without breaking old code.
>
> But for normal serialization is not this redundant?
> Besides, search by name slower compared with other methods (field
> numbers, for example).

Not necessarily. I could implement that by default it will use the field 
number, if the names doesn't match it could fallback to do a lookup by name.

I would like to avoid having a dependency on the orders of the fields.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list