std.data.json formal review

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 14 08:11:40 PDT 2015


On 8/14/15 10:44 AM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Friday, 14 August 2015 at 14:09:25 UTC, Steven Schveighoffer wrote:
>> a) we aren't writing
>> b) comments are for the human reader, not for the program. Dmd should
>> ignore the comments, and it doesn't matter the order.
>> c) it's not important, I think we all agree a format that has specific
>> allowances for comments is better than json.
>
> One should have a config file format for which there are standard
> libraries that preserves structure and comments. It is quite common to
> have tools that read and write config files.

And that would be possible here. JSON file format says nothing about how 
the data is stored in your library. But again, not important.

-Steve


More information about the Digitalmars-d mailing list