I hate new DUB config format
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Wed Nov 25 11:56:27 PST 2015
On 11/25/2015 11:10 AM, Adam D. Ruppe wrote:
> On Wednesday, 25 November 2015 at 19:02:18 UTC, Walter Bright wrote:
>> Note 1: json does support comments:
>>
>> "comment" : "this is a comment",
>
> That doesn't work in the majority of contexts (it is illegal in an array, for
> example) nor is it supported by standard tools.
The array thing is not a big problem. If it's a small array, just precede it
with the comment. If it is a large array, the individual entries are hardly
going to be commented.
It's not a problem with the standard tools, as the standard tools don't do
semantic processing. The semantic part, which would be custom to DUB (or the
app) can just ignore it.
JSON is not a perfect match for every application. But it is close enough, and
certainly close enough for small files like DUB files.
More information about the Digitalmars-d
mailing list