The YAML spec requiring turning "yes" "1" to true, and "no" "0" to false is one of the most aggravating things about YAML.
In Defense of YAML
11–20 of 173 posts
Re: In Defense of YAML
#12Re: In Defense of YAML
#13> Note the script block containing a list of shell scripts. Does this look like data? Code is Data! Lisp-it or Quit!
Re: In Defense of YAML
#14You want to see a real abuse of YAML? Take a look at SaltStack's Jinja rendered YAML. I just grabbed a random forumla as an example: https://github.com/saltstack-formulas/openssh-formula/blob/m...
I don't understand why people use a markup language when they need a programming language. I mean, sure, you can convert one into the other syntax-wise, both form trees, but what do you gain?
Re: In Defense of YAML
#15Re: In Defense of YAML
#16Earlier quoted context omitted.
What about https://dhall-lang.org/ ?
Dhall does indeed look like it starts to address this problem - haven't seen it before. I'd have to read deeper to decide whether I like it or not, though. I may try to convert some existing complex YAML I'm using into it to form an opinion.
Dhall supports functions from URLs and it's good to pin them using SHA hashes of their internal representation.
Re: In Defense of YAML
#17You want to see a real abuse of YAML? Take a look at SaltStack's Jinja rendered YAML. I just grabbed a random forumla as an example: https://github.com/saltstack-formulas/openssh-formula/blob/m...
Re: In Defense of YAML
#18Something I've never liked about YAML, and I've not found a way around, is that you can't know if you have the entire file because there isn't an end marker. If someone cut'n'pastes a block of YAML you don't know if they missed a bit off the end by mistake (unless you know the schema). That makes it harder to debug problems with YAML config.
---
But depending on the exact setup and used YAML parser, this may be hard to enforce.Re: In Defense of YAML
#19> Note the script block containing a list of shell scripts. Does this look like data? Code is Data! Lisp-it or Quit!