4 ms·
> json config files? oh yes I find JSON makes for awful config files. For the sole reason that they can't be commented.
by bentlegen 15y ago
> json config files? oh yes
I find JSON makes for awful config files. For the sole reason that they can't be commented.
- Klonoar 15y agoThis, a thousand times this.
- sparky 15y agoSublime Text 2's config files have JSON-like syntax, but allow C (/* */) and C++ (//) style comments.
- deleted 15y ago[deleted]
- alanh 15y agoUnless the program forbids you from adding extra keys, which I do not expect to be the case, you could add dummy keys like { actual_config_item: "Some value", comment_on_above: "Explanation / pseudo-comment" }
- alextgordon 15y agoI actually made a language, especially for Chocolat's configuration files. It's a stripped down form of s-exprs, with string literals designed to avoid escape characters. https://github.com/fileability/self-ml https://github.com/fileability/self-ml