3 ms·
As a Norwegian I’m in the camp of «just say NO to YAML»
by einherjae 4y ago
As a Norwegian I’m in the camp of «just say NO to YAML»
- gorgoiler 4y agoI wanted a no*-op script the other day: script: - true # oh no* No* pun intended. *Pun also intended. (To the uninitiated: YAML automatically casts the bare string “true” into a boolean for you. Fairly reasonable. But it does the same with “yes” and, per the parent comment, “no” too. This is problematic if you have a list of ISO language codes including Norwegian.)
- Gare 4y agoYAML 1.2 fixed that, but almost nobody supports or uses it (in my experience).
- notreallyserio 4y ago"y" is similarly afflicted.
- marcosdumay 4y agoPersonally, I think configuration languages should only accept strings. I still haven't met a data parser that didn't create more problems than it solves. The application knows exactly the schema of its data, let it do the parsing. But yeah, the YAML one is crazy.
- digisign 4y agoBackground: https://hitchdev.com/strictyaml/why/implicit-typing-removed/ https://hitchdev.com/strictyaml/why/implicit-typing-removed/ I do like "strict yaml."
- exyi 4y agoCan you please buy the yaml.no domain and put something (like a list of better alternatives) on there? ;) I wanted to do that, but they won't give me a Norwegian domain :|