std.serialization: pre-voting review / discussion
Tyler Jameson Little
beatgammit at gmail.com
Fri Aug 23 21:56:06 PDT 2013
On Friday, 23 August 2013 at 20:29:40 UTC, Jacob Carlborg wrote:
> 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
Awesome!
More information about the Digitalmars-d
mailing list