From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3vTA-0004hX-UV for qemu-devel@nongnu.org; Fri, 30 Oct 2009 13:41:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3vT6-0004XD-R7 for qemu-devel@nongnu.org; Fri, 30 Oct 2009 13:41:00 -0400 Received: from [199.232.76.173] (port=40960 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3vT6-0004Wx-K6 for qemu-devel@nongnu.org; Fri, 30 Oct 2009 13:40:56 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:37748) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3vT6-00017O-97 for qemu-devel@nongnu.org; Fri, 30 Oct 2009 13:40:56 -0400 Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by e3.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id n9UHWjEf020512 for ; Fri, 30 Oct 2009 13:32:45 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9UHesE21216530 for ; Fri, 30 Oct 2009 13:40:54 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n9UHerGY008436 for ; Fri, 30 Oct 2009 13:40:54 -0400 Message-ID: <4AEB2523.7020304@us.ibm.com> Date: Fri, 30 Oct 2009 12:40:51 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [RFC 0/7] QError v1 References: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> <4AEA133A.8010906@redhat.com> <20091030102809.1c520282@doriath> <4AEAE261.5030908@redhat.com> <4AEAE56E.8040309@us.ibm.com> <20091030162849.GH3579@shareable.org> In-Reply-To: <20091030162849.GH3579@shareable.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: qemu-devel@nongnu.org, Paolo Bonzini , Luiz Capitulino , Gerd Hoffmann , hollisb@linux.vnet.ibm.com Jamie Lokier wrote: > Anthony Liguori wrote: > >> Okay, let's get more clever then and do: >> >> #define QERR_DEV_NFOUND "{ 'code': 404, 'name': %s}" >> > > By the way, since you've already invented a non-standard JSON > extension, which is the single quotes, why not go a step further and > permit the quotes to be omitted for simple tokens? > > #define QERR_DEV_NFOUND "{ code: 404, name: %s}" > > Much neater, IMHO. > Javascript has keywords (like true, false, and null) that could lead to confusion using such a syntax. -- Regards, Anthony Liguori