Re:Hjson, the Human JSON
by zyxley on Thursday April 14, 2016 @12:38PM
(#11498178)
Strings without quotes leads to all kinds of trouble in YAML. You end up just quoting everything anyway the first time you need to use "false" or "[some words here]" as a string.
[ Parent
| on HN ]
Re:Hjson, the Human JSON
by crdoconnor on Thursday April 14, 2016 @06:04PM
(#11500697)
This ought be fixed by making YAML explicitly rather than implicitly typed.
E.g.
x: yes
>>> str(yaml['x'])
yes
>>> bool(yaml['x'])
True