3 ms·
inb4 YAML adds "Yeah, nah." and "Nah, yeah." as boolean values. Interpretation is locale dependent.
by CameronNemo 7y ago
inb4 YAML adds "Yeah, nah." and "Nah, yeah." as boolean values. Interpretation is locale dependent.
- crdoconnor 7y agoThat's why StrictYAML always interprets as string unless there's a schema. Cuts out the surprise type conversions.
- Master_Odin 7y agoYAML 1.2 fixed this making booleans just true/false and it's a real shame that a lot of things still use 1.1
- wrs 7y agoI’m sure Christopher True and Robert False really appreciate that “fix”.
- reneberlin 7y agoSo true. Your comment made my day.
- erik_seaberg 7y agoI don't like NO as a boolean literal (mostly because it's also an ISO country code), but there's only one right way to parse it in a YAML 1.1 document. It was a mistake to apply the 1.2 rules to 1.1 documents and issue a "warning" about incorrect output, rather than require rejecting the document if the 1.1 rules aren't implemented.
- EdwardDiego 7y agoI'd also like "Sweet" to be true and "Stink" to be false.