Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I 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?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: