YAML: It's Time to Move On
A radically different alternative with a lot going for it is Starlark: https://github.com/bazelbuild/starlarkIt’s a deterministic subset of Python. This means that if you have complex or repetitive configurations, you can use loops and functions to structure them. But it’s impossible to write an infinite loop or recursion.