← Back to context

Comment by giveita

1 year ago

I think it is telling no programming language has settled on YAML or JSON as a syntax. Because that would drive you nuts.

But we allow it for files that tend to make production changes usually without any unit tests!

I'd prefer something syntaxed like a programming language but without turing completeness.

Azure and GitHub build pipelines are written in yaml and have conditionals, variables, template expansions, etc

  • GitHub Actions also have function calls, it’s just that they can only occur in very specific places in the program, and to define a function you have to create a Git repository.

    And don’t forget Ansible playbooks!

> I think it is telling no programming language has settled on YAML or JSON as a syntax.

It's not telling, it's impossible. Neither JSON or YAML are Turing complete. That said, the JS in JSON is for Javascript, whose syntax it is derived from, so at least one major language uses it in its syntax.