Preferred program config file format and parsing library?

Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 3 05:44:54 PDT 2014


On Sunday, 3 August 2014 at 11:38:47 UTC, John Colvin wrote:
> On Sunday, 3 August 2014 at 10:54:10 UTC, Gary Willoughby wrote:
>> On Sunday, 3 August 2014 at 09:31:20 UTC, Marc Schütz wrote:
>>> On Saturday, 2 August 2014 at 12:42:00 UTC, Gary Willoughby 
>>> wrote:
>>>> What is the preferred format people here use for program 
>>>> config files? Json, Xml, ini, etc?
>>>
>>> JSON is nice for data exchange, but I dislike it for 
>>> configuration. It doesn't even support comments, or disabling 
>>> sections of the file. YML is friendlier in this regard.
>>>
>>> DUB is considering switching from JSON to SDL:
>>>
>>> http://sdl.ikayzo.org/display/SDL/Home
>>> http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/thread/2/
>>
>> Interesting, are there D libs available to parse yaml and sdl?
>
> http://code.dlang.org/packages/dyaml

Great, ta.


More information about the Digitalmars-d-learn mailing list