News for hackers. Stuff that matters.
Re:Goodbye Hjson by philwelch on Friday September 14, 2018 @02:58PM (#17989875)
ini is an underrated config format.
Re:Goodbye Hjson by geezerjay on Friday September 14, 2018 @04:00PM (#17990453)
> ini is an underrated config format.

I agree, but the problem with ini is that it isn't a format in the sense that it hasn't been formally defined in a consensual way. Thus the monumental success of TOML as it fills the void that ini left unfilled for decades.

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.
Re:Goodbye Hjson by philwelch on Friday September 14, 2018 @03:26PM (#17990132)
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