Re: [Json] 2-step proposal 4627bis + I-JSON

John Cowan <cowan@mercury.ccil.org> Thu, 04 July 2013 05:50 UTC

Return-Path: <cowan@ccil.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 97E2221F9EE3 for <json@ietfa.amsl.com>; Wed, 3 Jul 2013 22:50:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.575
X-Spam-Level:
X-Spam-Status: No, score=-3.575 tagged_above=-999 required=5 tests=[AWL=0.024, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1bf3w6RuxoFQ for <json@ietfa.amsl.com>; Wed, 3 Jul 2013 22:50:25 -0700 (PDT)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) by ietfa.amsl.com (Postfix) with ESMTP id 43FDE21F9ED0 for <json@ietf.org>; Wed, 3 Jul 2013 22:50:25 -0700 (PDT)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1UucQy-0006Tc-Di; Thu, 04 Jul 2013 01:50:24 -0400
Date: Thu, 04 Jul 2013 01:50:24 -0400
From: John Cowan <cowan@mercury.ccil.org>
To: Tim Bray <tbray@textuality.com>
Message-ID: <20130704055024.GC20507@mercury.ccil.org>
References: <CAHBU6itqGgndUKRUHH_q6fv8jonGL3VVHhkezFne0sC3T12c_Q@mail.gmail.com> <20130704002732.GV32044@mercury.ccil.org> <51D4F4F3.2070305@it.aoyama.ac.jp> <CAHBU6it0Qz7Yb5P1e9RA2F=CZ4yoY=TNqFq3a=atL2YHB+Q0RA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CAHBU6it0Qz7Yb5P1e9RA2F=CZ4yoY=TNqFq3a=atL2YHB+Q0RA@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Cc: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] 2-step proposal 4627bis + I-JSON
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
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: Thu, 04 Jul 2013 05:50:29 -0000

Tim Bray scripsit:

> But programmers in statically typed languages are going to do the
> equivalent of org.json.JSONObject.getLong() or getDouble(), and the idea in
> I-JSON is that if something in a JSON body is a number, it should Just
> Work.  So I’m beginning to like John’s idea.  Although it might be
> plausible to also say that if the number has no fractional part, it MUST
> fall in the 64-bit integer value range.

For my taste that deviates too far from JSON's JavaScript roots, where
ther are no 64-bit ints, only doubles which are sometimes treated as
32-bit ints.

-- 
"Why yes, I'm ten percent Jewish on my manager's side."      John Cowan
    --Connie Francis                         http://www.ccil.org/~cowan