-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nesting proposal : allow full fledged toml to be nested inside inline tables #898
Comments
Hi! Please see #781 which discusses the broader topic here. |
#781 decided to go with "JSON-like" #516 is an active discussion on how to do that by allowing newlines and trailing commas in inline tables json is very nested. a value in json is also a valid json document. I like this cleanliness. it makes it easier to read + write json files. This proposal makes toml tested like json by allowing values to be toml documents in their own right instead of restricting inline tables to very strict subset. This means that toml documents should support #516 as written requires a lot more characters and is harder to read also is incontinent with the rest of toml on whether or not it requires a you can compare creature.crow = {
color = "black"
[name]
singular = "crow"
plural = "crows"
adjective = "crow"
body_detail_plan = {
standard_materials.remove_material = ['hair']
[vertebrate_tissue_layers]
skin = 'skin'
fat = 'fat'
muscle = 'muscle'
bone = 'bone'
cartilage = 'cartilage'
}
} creature.crow = {
color = "black",
name = {
singular = "crow",
plural = "crows",
adjective = "crow",
},
body_detail_plan = {
standard_materials = { remove_material = ['hair'] },
vertebrate_tissue_layers = {
skin = 'skin',
fat = 'fat',
muscle = 'muscle',
bone = 'bone',
cartilage = 'cartilage',
}
}
}
|
I think that allowing table and array-of-tables headers inside inline tables violates a basic principle of TOML. The names wrapped in the The table sections are an important part of TOML. We're not trying to re-create JSON. Those headers are supposed to stand out. |
I think maybe that's something you should reflect on. You have some good ideas, but all of them vaguely have fallen in the "TOML is not JSON but I really want it to be" camp. Might be worth asking if TOML is actually right for your use case, and not just switching to JSON? |
pairs well with #897
The text was updated successfully, but these errors were encountered: