From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] Re: [PATCH] Add support for a configuration file Date: Wed, 14 May 2008 09:59:50 -0500 Message-ID: <482AFE66.5060407@us.ibm.com> References: <1210713545-11916-1-git-send-email-aliguori@us.ibm.com> <482A1F1C.2020902@codemonkey.ws> <20080513232021.GA8844@redhat.com> <482AFA1C.3030800@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org, Paul Brook To: Avi Kivity Return-path: In-Reply-To: <482AFA1C.3030800@qumranet.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Avi Kivity wrote: > Daniel P. Berrange wrote: >> That's very nearly YAML format[1], 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 > characters? 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 with '-'. I'm not against following some sort of standard (or even best practice). I just don't like YAML. Regards, Anthony Liguori ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/