- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
A 10 minute read covering some YAML edge-cases that you should have in mind when writing complex YAML files
A 10 minute read covering some YAML edge-cases that you should have in mind when writing complex YAML files
The problem is there aren’t really any good alternatives that have as widespread support. I’ve looked at lots and always found some annoying flaw that JSON or YAML don’t have. I mainly want good support in Python, Rust and VSCode.
There isn’t really a perfect option at the moment IMO.
If I’m using Rust I tend to go with RON at the moment. Sometimes I do use YAML but I write it as JSON (since YAML is a superset of JSON) with
# comments
.Also never output YAML from your programs. You can always output JSON instead which is better.
My hierarchy goes something like this: