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)

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


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

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