Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The yaml package supports most of YAML 1.2, but preserves some behavior from 1.1 for backwards compatibility. YAML 1.1 bools (yes/no, on/off) are supported as long as they are being decoded into a typed bool value. Otherwise they behave as a string.

Good solution for using YAML with strongly typed languages. No reason to leave type decisions up to a parser. I assume serde does something similar in Rust?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: