std.data.json formal review

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 21 10:37:34 PDT 2015


On 8/21/15 1:30 PM, Andrei Alexandrescu wrote:
> So perhaps this is just a naming issue. The names don't suggest
> everything you said. What I see is "parse a JSON stream" and "parse a
> JSON value". So I naturally assumed we're looking at consuming a full
> stream vs. consuming only one value off a stream and stopping. How about
> better names?

I should add that in parseJSONStream, "stream" refers to the input, 
whereas in parseJSONValue, "value" refers to the output. -- Andrei


More information about the Digitalmars-d mailing list