3 ms·
> Why is “on” a boolean literal (of course so are “true”, “false”, as well as “yes”, “no”, “y”, “n”, “off”, and all capitalized and uppercase variants)? ”on”,
by dragonwriter 3y ago
> Why is “on” a boolean literal (of course so are “true”, “false”, as well as “yes”, “no”, “y”, “n”, “off”, and all capitalized and uppercase variants)?
”on”, ”off”, ”yes”, ”no”, “y”, and ”n”, and case variants thereof, are not boolean literals in YAML since YAML 1.2 (2009).
- tristan957 3y agoAs far as I know, not even libyaml supports 1.2. What YAML parsing libraries support 1.2?
- dragonwriter 3y agohttps://www.yaml.info/libraries/index.html https://www.yaml.info/libraries/index.html