* Michael Snoyman <michael@snoyman.com> [2012-12-07 11:51:40+0200]
> > As for toYAML/toJSON, I guess most of the time they are different anyway —Not the serialization structure, no.
> > otherwise it's defeating the purpose of YAML to be more human-readable
> > than JSON.
> >
> >
> I don't think that's true in practice. Most of the readability of YAML
> comes from the syntax, not the choice of actual serialization structure.
> But I could be mistaken.
I meant that YAML has some flexibility in syntax, which probably should
be exploited by the instance writer to improve readability.
For that you'd need a sufficiently adjustable pretty-printer, but that
also means that you can't reuse ToJSON.
Roman