I feel that Yaml sucks. I understand the need for such markup language but I think it sucks. Somehow it’s clunky to use. Can you explain why?
I feel that Yaml sucks. I understand the need for such markup language but I think it sucks. Somehow it’s clunky to use. Can you explain why?
YAML is fine if you use a subset (don’t use the advanced features - not like you know those anyway) and use explicit strings (always add
"
to strings), otherwise things may be cast when you did not intend values to be cast.Example:
country: NO
(Norway) will be cast tocountry: False
, because it’ll castno
(regardless from casing) tofalse
, andyes
totrue
.country: "NO"
should not be cast.People are working on making S-Expressions a standard: https://datatracker.ietf.org/doc/draft-rivest-sexp/
Note: This is just a draft, but improvements have been happening since 2023.
I probably won’t like the parentheses, but I think I’ll take it over yaml/json/whateverelse.
That appears to not support comments. How they made that mistake after JSON is a mystery.