4 ms·
You can bring that argument, but only until you decide to use YAML, instead of something declarative and simple like JSON. Once you switch to something as powe
by zelphirkalt 6y ago
You can bring that argument, but only until you decide to use YAML, instead of something declarative and simple like JSON.
Once you switch to something as powerful as YAML, you might as well reach for a real programming language.
- tyfon 6y agoAlso, YAML is kind of a hack. Living in Norway I've had quite a few of these situations where no is parsed to False [1]. [1] https://hitchdev.com/strictyaml/why/implicit-typing-removed/ https://hitchdev.com/strictyaml/why/implicit-typing-removed/
- ithkuil 6y agoIt has been fixed since yaml 1.2 That said, yeah :facepalm:
- ithkuil 6y ago> powerful as yaml Can you make an example of the power of yaml that makes it more like a programming language (in particular vs JSON)?
- riffraff 6y agonot OP but: tags (custom data types), more builtin data types (dates etc), more syntax variations (heredocuments, multiple ways to write a string,a boolean, etc), comments, references+aliases. The language is vast, and most people use it without knowing it. I love YAML, but I wish there was a "strict&sane yaml subset".
- ithkuil 6y agoAll those are good examples of yaml complexity but none of that is anywhere near what even a simple programming language can unleash (variables, loops, functions, recursion etc)