• xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    I really don’t understand why people still insist on prohibiting trailing commas anywhere. The syntax is interesting but it looks like defining an array of objects would be needlessly difficult. I think the double square bracket syntax is far too easy to confuse.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      8 months ago

      but… trailing commas are ok in TOML (edit: I now see the caveat of an inline table - though trailing commas are not that useful for an inline list of values anyways)

      The double square bracket is for an array of tables. A regular array looks “normal”: https://toml.io/en/v1.0.0#array