std.data.json formal review

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 18 06:18:46 PDT 2015


On 8/18/15 2:31 AM, Jacob Carlborg wrote:
> On 2015-08-18 00:21, Andrei Alexandrescu wrote:
>
>> * On the face of it, dedicating 6 modules to such a small specification
>> as JSON seems excessive. I'm thinking one module here. (As a simple
>> point: who would ever want to import only foundation, which in turn has
>> one exception type and one location type in it?) I think it shouldn't be
>> up for debate that we must aim for simple and clean APIs.
>
> I don't think this is excessive. We should strive to have small modules.
> We already have/had problems with std.algorithm and std.datetime, let's
> not repeat those mistakes. A module with 2000 lines is more than enough.

How about a module with 20? -- Andrei



More information about the Digitalmars-d mailing list