Re: [Json] Proposal: the minimal edit

R S <sayrer@gmail.com> Sat, 22 June 2013 21:38 UTC

Return-Path: <sayrer@gmail.com>
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 2D1F721F9E9D for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 14:38:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.523
X-Spam-Level:
X-Spam-Status: No, score=-2.523 tagged_above=-999 required=5 tests=[AWL=0.076, BAYES_00=-2.599, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 1793FNJRzgia for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 14:38:05 -0700 (PDT)
Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) by ietfa.amsl.com (Postfix) with ESMTP id 3B3E821F9E95 for <json@ietf.org>; Sat, 22 Jun 2013 14:38:05 -0700 (PDT)
Received: by mail-wg0-f54.google.com with SMTP id n11so7555922wgh.9 for <json@ietf.org>; Sat, 22 Jun 2013 14:38:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=iCoORbq4dwijVA7cYYrSKjHg8hG4SeFJsBw4Z0Q8crk=; b=i8/tPP9aTvgXWRmfGoKEjzmsAQXLpUKacmQJD0EUuFIcjilmhNBVLM883ujHSimYCH KlQGClwpjMUqUnF1+L+pPzhUFIqR5pQIpUNhfLxlWn628f7MhJ8o2/p0HWTOy4vCHWW/ nBLderphkw27r3aStx5Y2VPXuhDomC/h26B/Js6nrzxikNX3O84bi+ErOaPvg74XTvkZ +xlM+05UF1Q2fe2IwCWC7uQeyiPESqqav10hnS5Bokz+WsVJ06VOnZ05BTYPAmu5TgAO 7khDn809z0T2tVvU9r3v//nE6JTT/8YYHUTB7mXzJvz0+x/5aki3M3NFfWi3yu+d3Z0a Tgtg==
MIME-Version: 1.0
X-Received: by 10.180.76.103 with SMTP id j7mr2346456wiw.21.1371937083149; Sat, 22 Jun 2013 14:38:03 -0700 (PDT)
Received: by 10.194.44.138 with HTTP; Sat, 22 Jun 2013 14:38:03 -0700 (PDT)
In-Reply-To: <20130622212219.GW31186@mercury.ccil.org>
References: <CAChr6SyN4Z3Hh8OFGHkK+AJN0+S09wMfjeobZ51GjKNL+GhPsw@mail.gmail.com> <CAHBU6ivhoUM9cfUnc1YfnyDdQnWQ=Mj10cSoYn0qouMQ0F94XA@mail.gmail.com> <CAChr6SyQDjik_BTojXdw3G7_B=W5iZXksuM15VYwGJqr8WHdhw@mail.gmail.com> <CAChr6SwbFfR5UQuU2ceJhDeGAhv5Zy0dKA3szzO_KGfjA7fx5Q@mail.gmail.com> <20130622205936.GV31186@mercury.ccil.org> <CAChr6SwJ5TkYw4TFxWv=9hZPU_jtKuSLDSrN9u+SzBBwo1aspA@mail.gmail.com> <20130622212219.GW31186@mercury.ccil.org>
Date: Sat, 22 Jun 2013 14:38:03 -0700
Message-ID: <CAChr6Syo5+vtGCFfg8bOo2D=GOwR_PpN0pic1ipx4esGd1YRRg@mail.gmail.com>
From: R S <sayrer@gmail.com>
To: John Cowan <cowan@mercury.ccil.org>
Content-Type: multipart/alternative; boundary="f46d043c7cc67ed4de04dfc4fec0"
Cc: Tim Bray <tbray@textuality.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Proposal: the minimal edit
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: Sat, 22 Jun 2013 21:38:06 -0000

On Sat, Jun 22, 2013 at 2:22 PM, John Cowan <cowan@mercury.ccil.org> wrote:

> R S scripsit:
>
> > > + ECMAScript parsers only accept,
> >
> > This bit is not quite right. I think they'll accept anything that
> conforms
> > to the JSON grammar, and then produce a number that is not what the
> sender
> > intended if it's out of range.
>
> Fair enough.  "Only interpret correctly", perhaps, then.
>
> > <https://dev.twitter.com/docs/twitter-ids-json-and-snowflake>
>
> This says that some parsers may throw exceptions if the number is too
> big, though it doesn't mention any such.


That document is not exclusively targeted at ECMAScript programmers, and it
is targeted at programmers with widely varying levels of skill. It's very
easy to encounter such an exception in languages where integers are assumed
to be 32 bits, even though that exception is rarely produced by a JSON
library itself.

- Rob