dud: A dub replacement
schveiguy at gmail.com
Tue Nov 19 16:30:26 UTC 2019
On 11/19/19 3:15 AM, Robert Schadek wrote:
> On Monday, 18 November 2019 at 23:08:13 UTC, Laurent Tréguier wrote:
>> I don't understand why this would apply to JSON specifically. Whatever
>> the language is, the config files will be hand-written; spelling
>> errors are pretty universal, and anything we write is prone to
>> mistakes to some extent
> dud already tells you if you mistyped a key.
> Adding new file formats is "trivial" with dud current code base.
> is the data structure used to mirror the file content.
> is the json reader.
> Currently, I have no plans to add any other file format.
> But PR's are always welcome.
> The decision on json and sdl has been made a long time ago, for better
> or for worse.
> Please don't turn this thread into bike-shedding.
> Additionally, dub/dud is already on the way to add cli functions to
> the config file.
> A look at adding dependencies with "dub add" already shows that.
And I would complain that the fact json exists as a file format already
screws up dub add -- using dub add removes ALL comments in an SDL file,
and rewrites the file in the order it sees fit.
result: I don't use dub add any more.
More information about the Digitalmars-d-announce