3 ms·
How does this deal with needing to represent nested data? (the example coming to me now is TOML as a list of libraries each of which has a number of dependencie
by adgjlsfhk1 3y ago
How does this deal with needing to represent nested data? (the example coming to me now is TOML as a list of libraries each of which has a number of dependencies). I guess you can always do it by duplication, but for a human oriented format, that sounds pretty painful.
- xedrac 3y agoWith freeform keys, you can nest all day. But you'll likely just reinvent the wheel when you want certain features. aaa.bbb.enabled = true aaa.ccc.enabled = true
- enriquto 3y ago> for a human oriented format, that sounds pretty painful As a human, I prefer to edit by hand an unordered list of key-value pairs (even if the keys are long), than a json object. I often find myself using gron/ungron to edit json data by hand in a comfortable manner. The fact that several implementations of gron exist suggests that I'm not alone in this preference. Editing json requires a global understanding of the structure. But on a list of keys/values there is no order, and each line stands for itself and is understandable in isolation.