[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [kvm-devel] [PATCH] Add support for a configuration
Re: [Qemu-devel] Re: [kvm-devel] [PATCH] Add support for a configuration file
Wed, 14 May 2008 09:59:50 -0500
Thunderbird 188.8.131.52 (X11/20080505)
Avi Kivity wrote:
Daniel P. Berrange wrote:
That's very nearly YAML format, which is attractive because parsers
are available in every major programming language, and it is still
pretty human friendly.
So my preference would be to go with the last option and make sure
it really is YAML compliant so people can use standard tools for
generating and parsing the format.
Using a standard format has the added benefit that things like quoting
are taken care of.
Filenames with leading and trailing spaces, anyone? Embedded control
YAML is a bad choice though. It's purpose is to model data structures
of embedded languages (similar to JSON). The syntax would get out of
hand quickly because what we've been talking about so far would be
modeled as an association whereas semantically, we want it to be a
sequence. To make it a sequence, we would have to prefix every line
I'm not against following some sort of standard (or even best
practice). I just don't like YAML.
Re: [Qemu-devel] Re: [PATCH] Add support for a configuration file, Fabrice Bellard, 2008/05/14