And I’ll show you YAML

(a continuation of this post)

  • Andy ( Andy@programming.dev ) 
    link
    fedilink
    arrow-up
    3
    ·
    il y a 3 ans

    Ever tried NestedText? It’s like basic YAML but everything is a string (types are up to the code that ingests it), and you never ever need to escape a character.

    • synae[he/him] ( synae@lemmy.sdf.org ) 
      link
      fedilink
      English
      arrow-up
      8
      ·
      il y a 3 ans

      I’ve got too many consumers that I don’t control which dictate their input formats. And to be quite honest, “types are up to the code that ingests it” sounds like a huge negative to me.

      • Andy ( Andy@programming.dev ) 
        link
        fedilink
        arrow-up
        3
        ·
        il y a 3 ans

        Ah, well I love that policy (types being in code, not configs). FWIW I sometimes use it as a hand-edited document, with a small type-specifying file, to generate json/yaml/toml for other programs to load.