• marcos@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      3 hours ago

      Well…

      It’s name-value pairs, with groups denoted by balanced brackets. It’s close to as good as you can get for one kind of data serialization.

      What is impressive is how many problems people manage to fit in something so small.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      5 hours ago

      That’s not JSON. Note the use of equal signs for the property names. That’s something else.

      • unmagical@lemmy.ml
        link
        fedilink
        arrow-up
        8
        ·
        4 hours ago

        Carcinisation is the phenomenon of non crabs to evolve crab like characteristics. It is not the process of non crabs becoming true crabs.

        In this case the language is trending toward JSON syntax, but it doesn’t have to actually be JSON for carcinisation to be an applicable analogy.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        4 hours ago

        Equals schmequals.
        It could be a and it would be the same as JSON because it is still a single symbol used as a separator.

        a distinction without a difference

        Now, if it took multiple separators, each giving some specific different meaning, then it would be a something else.

  • panda_abyss@lemmy.ca
    link
    fedilink
    arrow-up
    41
    ·
    5 hours ago

    If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing.

    But yaml is a mess, and you’d think you could parse it easily, but you can’t.

  • AnyOldName3@lemmy.world
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    5 hours ago

    TOML’s design is based on the idea that INI was a good format. This was always going to cause problems, as INI was never good, and never a format. In reality, it was hundreds of different formats people decided to use the same file extension for, all with their own incompatible quirks and rarely any ability to identify which variant you were using and therefore which quirks would need to be worked around.

    The changes in the third panel were inevitable, as people have data with nested structure that they’re going to want to represent, and without significant whitespace, TOML was always going to need some kind of character to delimit nesting.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      8
      ·
      3 hours ago

      Well, Wikipedia does say:

      The [TOML] project standardizes the implementation of the ubiquitous INI file format (which it has largely supplanted[citation needed]), removing ambiguity from its interpretation.

      https://en.wikipedia.org/wiki/TOML

  • somegeek@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    5 hours ago

    I think edn is almost the only more advanced and ergonomic option to json. Edn is like the evolved json, but its interesting that its roots are way older than JSON.

    The fact that you can very efficiently define whole applications and software just with edn (and the lisp syntax in general) is what makes really amazing.

    I think this blog post sheds more light on how we only need lisp for defining data and applications.

    https://stopa.io/post/265