RFC: std.json sucessor

via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 22 12:00:14 PDT 2014


On Friday, 22 August 2014 at 18:08:34 UTC, Sönke Ludwig wrote:
> Am 22.08.2014 19:57, schrieb "Marc Schütz" <schuetzm at gmx.net>":
>> The easiest and cleanest way would be to add a function in 
>> std.data.json:
>>
>>     auto parse(Target, Source)(Source input)
>>         if(is(Target == JSONValue))
>>     {
>>         return ...;
>>     }
>>
>> The various overloads of `std.conv.parse` already have mutually
>> exclusive template constraints, they will not collide with our 
>> function.
>
> Okay, for parse that may work, but what about to!()?

What's the problem with to!()?


More information about the Digitalmars-d mailing list