std.serialization: pre-voting review / discussion

Jacob Carlborg doob at me.com
Fri Aug 23 13:29:39 PDT 2013


On 2013-08-23 16:39, Tyler Jameson Little wrote:

> What about adding delegate hooks in somewhere? These delegates would be
> called on errors like invalid type or missing field.
>
> I'm not saying this needs to be there in order to release, but would
> this be a direction we'd like to go eventually? I've seen similar
> approaches elsewhere (e.g. Node.js's HTTP parser).

std.serialization already supports delegate hooks for missing values:

https://dl.dropboxusercontent.com/u/18386187/docs/std.serialization/std_serialization_serializer.html#.Serializer.errorCallback

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list