by guideamigo · 3y ago · 0 comments
In yaml:
country: no
Now your country is Boolean(false)Now, I still prefer yaml overall.
Also, I hate that GitHub actions don't support anchors.
In fact: there exists a specification called JSON5 which does include comments.
But I agree that it would've been nice if it had comments before it achieved a critical mass of adoption.
Can anyone confirm/deny ?
Crockford observed that some people were using comments to store parsing directives, which could break compatibility between different systems. Hence, the decision to remove comments to maintain the simplicity and consistency of the format across various programming languages and environments.
https://www.freecodecamp.org/news/comments-in-json/
I vote for the minimalist heretic.
For Json, there are several such syntactic problems. Unnecessary double quotes and only double quotes everywhere. No dangling comma.
JSON is (arguably) too strict. YAML is (arguably) too loose. One is better for machines, the other is (usually) better for writing by humans by hand. There's no perfect compromise for every use case.