|
|
|
|
|
by jeroenhd
1250 days ago
|
|
I don't think YAML is great, but I still think it's the best format out there. The only confusing problem I've run into was the sexagesimal number notation and even that was fairly obvious. Perhaps it's because I tend to overquote strings? I mean sure, the on/off to boolean mappings are annoying, but they also become very obvious when you're parsing config because the type validation will fail. If `flush_cache` has an enum `on` but no key `True` then the type validator will instantly complain about both the missing key and the extra key in the dictionary. Same with accidental numbers, any type check will show that the parsing failed. I find JSON for config files to become unreadable quickly because of the non-obvious nesting and the lack of comments. You can pick a JSON extension but then you need to pick one that your tooling will support. |
|
What do you think of https://toml.io ?