logoalt Hacker News

paulddraper • today at 7:10 PM • 1 reply • view on HN

> Top-level arrays. A TOML file is always a table, so a list of records needs a wrapper key.

I'm curious for example configs that are top-level lists?


Replies

priomsrb • today at 8:46 PM

One example could be something that's a list of files/folders e.g. .gitignore

Or it could be a list of records:

{name: 'Alice', age: 42}

{name: 'Bob': age: 44}