Don't use YAML for configuration files. A single incorrect whitespace is enough to break indentation making subtle configuration changes that are easy to miss.
=> More informations about this toot | More toots from federico3@oldbytes.space
@federico3
=> More informations about this toot | More toots from cybertailor@wetdry.world
@cybertailor @federico3
What would be a good alternative?
[#]JSON? #TOML?
=> More informations about this toot | More toots from sumanthvepa@mastodon.social
@sumanthvepa @federico3 some standard key-value format (TOML, INI, JSON) for simple configs, and a custom lexer&parser to describe complex confuguration with clean and concise syntax
=> More informations about this toot | More toots from cybertailor@wetdry.world
@cybertailor @sumanthvepa @federico3
i also recommend scfg: https://git.sr.ht/~emersion/scfg
=> More informations about this toot | More toots from navi@social.vlhl.dev
@navi @sumanthvepa @cybertailor Wow, scfg looks pretty robust, with named/typed entities and especially if it allows dimensional analysis. It even has a proper BNF.
=> More informations about this toot | More toots from federico3@oldbytes.space
@federico3 @navi @sumanthvepa @cybertailor Definitely looks interesting
=> More informations about this toot | More toots from arclight@oldbytes.space This content has been proxied by September (3851b).Proxy Information
text/gemini