3 ms·
> TOML deliberately has a couple of ways of writing arrays, and a one-line short format for maps: you're supposed to alternate these, and this technique could e
by andreareina 6y ago
> TOML deliberately has a couple of ways of writing arrays, and a one-line short format for maps: you're supposed to alternate these, and this technique could eliminate most of the repetition in that particular file.
Could you provide an example of what you mean, or point to some such? We're having a spot of trouble with arrays of maps ourselves.
- samatman 6y agoIf you look at https://github.com/toml-lang/toml/blob/master/toml.md https://github.com/toml-lang/toml/blob/master/toml.md, you'll see "Array", "Inline Table", and "Array of Tables", and you can put an inline table inside an array. This breaks down when things get really branchy. TOML really expects keys to be symbols rather than strings.