DEV Community

Discussion on: Stop Using YAML

Collapse
 
steshaw profile image
Steven Shaw

Agree 100%. YAML should be avoided. Its invention was well-intended (and even welcome at the time). A good reference is:

noyaml.com/

What is needed is programmable configuration, in a programming language with modern tooling. Alternatives to YAML include Dhall, Cue, Jsonnet, and even the language you are using if it comes with something like load/eval (e.g. Scheme, Python, JavaScript). Using a general purpose programming language is discouraged as a configuration language because of side effects. What would be the best of both worlds, is to have the most fancy-pants language with a total subset that is for programmable configuration. Idris 2 could be ideal with a few strategic enhancements.