What is the best file format for configuration file?

Like A Duck@programming.dev to Technology@lemmy.ml – 33 points –

cross-posted from: https://programming.dev/post/1743099

.yaml, .toml, etc?

45

You are viewing a single comment

There is no best. It depends on the application

How would it depend?

Some applications don't have enough config entries to warrant support for nested entries

Some applications need variable-length data, and some even variable-length lists

Some applications don't care about having fast read/write times or a small memory footprint and can do with more complex formats that require the use of third-party libraries

Some embedded applications (e.g. AVR) don't have access to a whole lot of libraries