Everything about TOML format
www.youtube.com
external-link
What is this TOML?Visualizer:https://toml-to-json.orchard.blog/Code:https://github.com/orcharddweller/toml-to-jsonTOML spec:https://toml.io/en/v1.0.0#TOML #t...
@xmunk@sh.itjust.works
link
fedilink
8
edit-2
10M

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
link
fedilink
English
9
edit-2
10M

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

Create a post

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



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog