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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.