3 ms·
It doesn’t help that YAML has footguns. I love it as an editable format, especially compared to JSON, but for library writers, supporting the whole spec (safely
by colejohnson66 4y ago
It doesn’t help that YAML has footguns. I love it as an editable format, especially compared to JSON, but for library writers, supporting the whole spec (safely) tends to not be possible; Some even go as far as having a “safe load” function that purposefully violates the spec to remove footguns.
- tough 4y agoIf you use "NO" it gets parsed as norway
- colejohnson66 4y agoThe whole "`NO` is Norway" thing is indeed one of the footguns people love to bring up. However, as someone who is writing the YAML manually, and has a syntax highlighter, these issues don't manifest.
- tough 4y agoI dunno, this is where I said fuck it and never used it again. I don't know what kind of mind will that as an OK reserved word for a programming language. but OK.. I guess I'm lucky I didn't need to use yaml for my work.
- nishs 4y agoI thought it was the other way around? i.e. "NO", in a document that intends "NO" to mean "Norway", is parsed as "False".