Re:Goodbye Hjson
by beaconstudios on Friday September 14, 2018 @03:13PM
(#17990002)
I am definitely a fan of INI, but (AFAIK?) it doesn't support structured data beyond simple sectioning.
[ Parent
| on HN ]
Constraints are a good thing ;)
You can fake it by having say, dot-delimited keys, but a lot of the complexity of config file formats come from the desire to support arbitrarily structured data when sometimes it's just as easy to fake it, not have it, or even use some templating.
Re:Goodbye Hjson
by cmroanirgo on Sunday September 16, 2018 @05:48AM
(#17998124)
> it doesn't support structured data beyond simple sectioning
Not exactly true (nor completely untrue). Look at your .gitconfig to see an example of how it can shoehorned in. Basically, it uses a .dot notation in a section header to distinguish levels.
I wrote an little module a few years back that copes with structure support: https://www.npmjs.com/package/jsinf#the-format