3 ms·
You just learn about the edge cases. This applies to everything. There's a number of languages where an empty list/array is truthy and a number where it's false
by viraptor 5y ago
You just learn about the edge cases. This applies to everything. There's a number of languages where an empty list/array is truthy and a number where it's falsey. Learn the tool, do some defensive programming (always quote the strings) and you'll be fine.
(This issue was recognised and since yaml 1.2 (2009) the spec says "no" is a string, packages like https://yaml.readthedocs.io/ https://yaml.readthedocs.io/ have migrated a while ago)