3 ms·
So what should one use for configuration? I am not going to use JSON because of lack of comments. A configuration file needs comments. TOML does the job for thi
by johnisgood 5y ago
So what should one use for configuration? I am not going to use JSON because of lack of comments. A configuration file needs comments. TOML does the job for this well, I think.
- eyelidlessness 5y agoTOML is fine. If you use JSON, almost everything has affordances for comments as keys (“//“: …) many also accommodate values ([“//…”]).
- krapp 5y agoLua is also good.
- emptyparadise 5y agoSandboxed Lua with a quick timeout would be great.
- zkldi 5y agoI've taken a massive liking to JSON5[1] recently for configs, but I've never really seen anyone else using it. Sucks, because I think it's really easy to read and write. [1] https://json5.org/ https://json5.org/