Follow

Why the fuck does Ruby's build-in YAML loader convert "off" to a boolean false?!?! Who the fuck thought that was a good idea?

@djsumdog Not ruby's fault per se....that is actually the recommendation of the yaml spec (see bottom of this)
stackoverflow.com/a/42284910

All of the following unless "quoted" will be treated as boolean

y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF

yaml.org/type/bool.html

yay yaml /s

@debugninja You can also reference YAML sections using foo: &bar, and then *bar later. So you can't really convert YAML to json in ever case because YAML allows infinite cycles 😅😂

@djsumdog ohhh yeah I actually like YAML but FML if I ever have to write a fucking parser for it

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!