Open oldkingOK opened 6 months ago
It works with test.toml:
[[a]]
[[a.b]]
name = "nick"
ishuman = true
[[a.b]]
name = "jack"
ishuman = false
While the TOML 1.0.0 specification allows us to ignore the parent node definition.
Coming back to this, I'm not seeing anywhere in the TOML spec that actually says this is allowed, and they show many similar cases which are not allowed, so I'm not inclined to allow this behavior. There's a certain lack of clarity here - you're defining, essentially, an array b
of name, ishuman
on a table a
, but you don't define a
anywhere earlier, so it's ambiguous.
Using latest Tomlet (5.3.0)
Code
test.toml
Log