Post #3377997
2026-04-25 21:17 UTC
@curious_carrot@mastodon.social YAML is better than JSON but not particularly good. TOML is better than YAML if you have something that it's simple enough for. UCL¹ might work okay for somewhat straightforward configuration files.
Otherwise, no, you cannot have a generic configuration file format. You will have to design and parse your own, one that takes into account both general lessons learned and the specific configuration needs of your program.
¹ https://github.com/vstakhov/libucl
Replies (1)
-
@cks@mastodon.social 2026-04-25 21:18
@curious_carrot@mastodon.social Configuration files are one of the user interfaces of your program, and just as you can't necessarily use a generic UI, you can't necessarily use a generic configuration file format.