4 ms·
The thread I linked describes the limitations of the approach you suggest, in particular, the ability to associate metadata not just with leaf nodes but also in
by mbostock 8y ago
The thread I linked describes the limitations of the approach you suggest, in particular, the ability to associate metadata not just with leaf nodes but also internal nodes, and not requiring the names of children to be unique. Of course you can express hierarchies in YAML, but the result ends up being more verbose and more prone to syntax errors; the point of comma-separated trees is to be easier to read and edit.
- tracker1 8y agoI don't think comma separated trees are easier to read... in fact, I think they're quite a bit harder. I will say it might be easier to write. do string quoting, quote escaping and newline embedded in a quoted string work?