dud: A dub replacement

Steven Schveighoffer 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.
> This 
> https://github.com/symmetryinvestments/dud/blob/master/pkgdescription/source/dud/pkgdescription/package.d 
> is the data structure used to mirror the file content.
> This 
> https://github.com/symmetryinvestments/dud/blob/master/pkgdescription/source/dud/pkgdescription/json.d 
> 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 
> manipulate
> 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 mailing list