43
you are viewing a single comment's thread
view the rest of the comments
[-] xmunk@sh.itjust.works 8 points 9 months ago* (last edited 9 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 9 points 9 months ago* (last edited 9 months ago)

but... trailing commas are ok in TOML

  • edit 1: I now see the caveat of an inline table - though trailing commas are not that useful for an inline list of values anyways
  • edit 2: they're changing this for TOML 1.1: https://github.com/toml-lang/toml/issues/516 .

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

this post was submitted on 01 Feb 2024
43 points (86.4% liked)

Programming

17314 readers
46 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS