On 11/18/19 3:54 AM, Jacob Carlborg wrote:

Perhaps this ship has already sail. But YAML would have been a better choice. It's a superset of JSON. All the existing JSON description files would have worked as is.
YAML's grammar is a convoluted read-only mess. Every time I have to write it I feel like I'm just guessing and hoping I'm magically writing it correctly. I've even had silent problems on travis-ci that turned out to be .travis.yml not being parsed the way I thought. That sort of thing shouldn't even be *possible* on a config file format.

Especially irritating to me is even just the basic nesting - the whole "sometimes you HAVE to use a hyphen and sometimes you have to OMIT the hyphen (or it'll silently be interpreted wrong)". And yea, yea, "Object vs array", whatever, but when you're using YAML for hand-written config files, the whole distinction between what should be objects vs arrays is just a big pile of arbitrary pointlessness (a flaw it inherits from JSON).

And the grammar being a superset of JSON doesn't really help much in practice, because real idiomatic YAML in the wild (including config file examples) doesn't use it.
  • dud: A dub replaceme... Robert Schadek via Digitalmars-d-announce
    • Re: dud: A dub ... Jacob Carlborg via Digitalmars-d-announce
    • Re: dud: A dub ... mipri via Digitalmars-d-announce
    • Re: dud: A dub ... GoaLitiuM via Digitalmars-d-announce
    • Re: dud: A dub ... Nick Sabalausky (Abscissa) via Digitalmars-d-announce
      • Re: dud: A ... Denis Feklushkin via Digitalmars-d-announce
        • Re: dud... Sebastiaan Koppe via Digitalmars-d-announce
          • Re:... Soulsbane via Digitalmars-d-announce
          • Re:... Jacob Carlborg via Digitalmars-d-announce
            • ... Nick Sabalausky (Abscissa) via Digitalmars-d-announce
          • Re:... Russel Winder via Digitalmars-d-announce
          • Re:... Sebastiaan Koppe via Digitalmars-d-announce
            • ... Russel Winder via Digitalmars-d-announce
            • ... Paolo Invernizzi via Digitalmars-d-announce
              • ... Sebastiaan Koppe via Digitalmars-d-announce
                • ... Russel Winder via Digitalmars-d-announce
                • ... JN via Digitalmars-d-announce
                • ... Russel Winder via Digitalmars-d-announce
                • ... Tobias Pankrath via Digitalmars-d-announce
                • ... Russel Winder via Digitalmars-d-announce

Reply via email to