Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZkgD-000473-5p for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:38:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZkg8-00044C-7q for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:38:00 -0500 Received: from [199.232.76.173] (port=54953 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZkg7-000440-Vz for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:37:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32443) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZkg7-0002eX-Fq for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:37:55 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH] win32: use PRId64 instead of %lld References: <1264368221-3040-1-git-send-email-hpoussin@reactos.org> <20100125100905.GA9019@redhat.com> <20100125120348.461ce622@doriath> <20100125132719.23a483cf@doriath> <20100125153838.GB11161@redhat.com> <20100126094329.70719b6f@doriath> Date: Tue, 26 Jan 2010 13:37:51 +0100 In-Reply-To: <20100126094329.70719b6f@doriath> (Luiz Capitulino's message of "Tue, 26 Jan 2010 09:43:29 -0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: aliguori@us.ibm.com, Herve Poussineau , qemu-devel@nongnu.org, "Michael S. Tsirkin" Luiz Capitulino writes: > On Mon, 25 Jan 2010 17:38:38 +0200 > "Michael S. Tsirkin" wrote: [...] >> The issue I see isn't related to unsigned. Apparently we currently >> accept values such as 'a' as valid strings. Since this is not valid json >> we probably should reject it just in case we will want to switch to >> another json library, otherwise clients might come to depend on >> non-standard behaviour. > > This extension is only used internally by QEMU Let me elaborate: when a QEMP client sends us 'a' over the wire, the parser rejects that as an error. At least that's what we've been promised when the extension was discussed. > and we find it > very convenient otherwise we would have to escape strings in > dicts and lists, which is error prone and time consuming. I doubt it would be error prone, but it would sure be annoying and hard to read. The readability argument is what convinced me.