Re: [Json] Minus Zero

Carsten Bormann <cabo@tzi.org> Tue, 21 June 2016 21:48 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D42012D7E2 for <json@ietfa.amsl.com>; Tue, 21 Jun 2016 14:48:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gxwHHtVf7tHz for <json@ietfa.amsl.com>; Tue, 21 Jun 2016 14:48:15 -0700 (PDT)
Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7A74B12D7D7 for <json@ietf.org>; Tue, 21 Jun 2016 14:48:15 -0700 (PDT)
Received: from mfilter27-d.gandi.net (mfilter27-d.gandi.net [217.70.178.155]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id F0CC1FB8A1; Tue, 21 Jun 2016 23:48:13 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mfilter27-d.gandi.net
Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter27-d.gandi.net (mfilter27-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id pSoewktdeMm3; Tue, 21 Jun 2016 23:48:12 +0200 (CEST)
X-Originating-IP: 93.199.242.26
Received: from nar-3.local (p5DC7F21A.dip0.t-ipconnect.de [93.199.242.26]) (Authenticated sender: cabo@cabo.im) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 9E3AEFB882; Tue, 21 Jun 2016 23:48:11 +0200 (CEST)
Message-ID: <5769B61A.9010701@tzi.org>
Date: Tue, 21 Jun 2016 23:48:10 +0200
From: Carsten Bormann <cabo@tzi.org>
User-Agent: Postbox 4.0.8 (Macintosh/20151105)
MIME-Version: 1.0
To: John Cowan <cowan@mercury.ccil.org>
References: <2a7f88b9-f719-dfd8-08a9-1777833e53d8@gmail.com> <e94f3bd0-1635-b2e1-c5da-9ae350ae652d@gmail.com> <57684982.2010705@tzi.org> <8e5dc4b2-a897-30e7-6e37-921c463275cd@gmail.com> <CADEL5zv-0ZRdcXKp1R=EBHqcJquOR7CYR=EW75xmtFpXG5OLOg@mail.gmail.com> <20160621154243.GG13605@mercury.ccil.org> <6d834be1-14c3-d8b4-09dd-2a992cfe55a6@gmail.com> <20160621204150.GJ13605@mercury.ccil.org>
In-Reply-To: <20160621204150.GJ13605@mercury.ccil.org>
X-Enigmail-Version: 1.2.3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/Kv_mKnEP7NHADN_tNnkzhrsG1Q0>
Cc: JSON WG <json@ietf.org>, Christian Zangl <coralllama@gmail.com>, Anders Rundgren <anders.rundgren.net@gmail.com>
Subject: Re: [Json] Minus Zero
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Jun 2016 21:48:17 -0000

John Cowan wrote:
> The node.js and Chrome REPLs will print -0 in appropriate circumstances
> (whereas the Rhino and Edge REPLs will not).

The REPLs will, thankfully, but JSON.stringify(-0) (which is the JSON
implementation defined in more recent JavaScripts) acts broken as
designed (ES5.1 15.2.3 second list number 9a with 9.8.1 number 2; ES6
24.3.2.1 number 10a with 7.1.12.1 number 2).

Grüße, Carsten