Hacker News new | ask | show | jobs
by giveita 278 days 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.

2 comments

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!

and they all suck horribly to use
> 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.