• Jim@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 year ago

    I think yaml was a perfectly fine way to express a hash/dict like config. I am surprised that toml was so widely adopted by the community.

    • GTG3000@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      As someone who had tried to wrap their mind around YAML spec…

      Fuck yaml. It is ridiculous how much junk there is in that spec.

    • carl_the_grackle@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      Yaml is fine until you want to abbreviate Norway and get false… toml doesn’t handle everything well but at least it doesn’t have insane problems like that.

      • Andy@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        While that shouldn’t happen with a current-spec YAML parser, I agree even the current spec does way too much with types.

        I’ve come to love NestedText’s approach of leaving all type handling to the ingesting code.

          • Andy@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Would you suggest a topic or tooling to pair with it, so I can provide a good demo for working with it in a real and useful context?

            I made a CLI tool for working with it but want to avoid making a look-at-me spammy post, and I think the NestedText site itself explains the ideas pretty well already.

            • Jason Novinger@programming.devM
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 year ago

              First, I have to apologize, I just meant post a link to NestText as a post in c/Python. I definitely didn’t mean to imply you should have to go write a blog post (or something) about it just for me. I swear this was just an attempt to get another person posting interesting things to c/Python. 😬

              Looking through the community projects and docs, the use cases/tooling that really stood out to me were:

              Thinking about how I might use it: