Re: [Json] "best practices" Vs. Profile for i-json

John Cowan <cowan@mercury.ccil.org> Mon, 04 August 2014 16:45 UTC

Return-Path: <cowan@ccil.org>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8999C1A0421 for <json@ietfa.amsl.com>; Mon, 4 Aug 2014 09:45:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.098
X-Spam-Level:
X-Spam-Status: No, score=0.098 tagged_above=-999 required=5 tests=[BAYES_50=0.8, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham
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 OPvAUfRLXLdF for <json@ietfa.amsl.com>; Mon, 4 Aug 2014 09:45:53 -0700 (PDT)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 333901A0053 for <json@ietf.org>; Mon, 4 Aug 2014 09:45:53 -0700 (PDT)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1XELOO-0005JD-Vz; Mon, 04 Aug 2014 12:45:49 -0400
Date: Mon, 04 Aug 2014 12:45:48 -0400
From: John Cowan <cowan@mercury.ccil.org>
To: Stephen Dolan <stephen.dolan@cl.cam.ac.uk>
Message-ID: <20140804164548.GD28851@mercury.ccil.org>
References: <2d53157574f749e0b1399b9e39564ecd@BL2PR02MB307.namprd02.prod.outlook.com> <CA+mHimPoZzmoio0Y+JgUDHd4b9B4yPm9fc3a1SCV6tayJ_9z7A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CA+mHimPoZzmoio0Y+JgUDHd4b9B4yPm9fc3a1SCV6tayJ_9z7A@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Archived-At: http://mailarchive.ietf.org/arch/msg/json/tWsamrs7SZ96ejKBR26fabvt2VM
Cc: IETF JSON WG <json@ietf.org>, Larry Masinter <masinter@adobe.com>
Subject: Re: [Json] "best practices" Vs. Profile for i-json
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Mon, 04 Aug 2014 16:45:55 -0000

Stephen Dolan scripsit:

> The exact requirement is more subtle than this.

Thank you for explaining so clearly what I have been fumbling so badly.

> "An implementation [MUST NOT/SHOULD NOT] distinguish between two
> numeric literals whose decimal values round to the same IEEE754
> double-precision value (using standard round-to-nearest, ties-to-even
> rounding)."

+1

-- 
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
Business before pleasure, if not too bloomering long before.
        --Nicholas van Rijn