Re: draft-ietf-appsawg-json-pointer-07 - array index for end ofarray

Barry Leiba <barryleiba@computer.org> Mon, 17 December 2012 19:54 UTC

Return-Path: <barryleiba.mailing.lists@gmail.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B89F821F87D7 for <ietf@ietfa.amsl.com>; Mon, 17 Dec 2012 11:54:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.041
X-Spam-Level:
X-Spam-Status: No, score=-103.041 tagged_above=-999 required=5 tests=[AWL=-0.064, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0bXqCmbuxdrw for <ietf@ietfa.amsl.com>; Mon, 17 Dec 2012 11:54:06 -0800 (PST)
Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by ietfa.amsl.com (Postfix) with ESMTP id CB44321F85BC for <ietf@ietf.org>; Mon, 17 Dec 2012 11:54:05 -0800 (PST)
Received: by mail-la0-f44.google.com with SMTP id d3so5048602lah.31 for <ietf@ietf.org>; Mon, 17 Dec 2012 11:54:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=HI7kJYOjY9A6kV2ZVifunybB6vC4wYGdO4tRYvOubNs=; b=PnTP4/ory6Vwbz3jkaZ3KEgiIZGMkyWoUDmDDHDYqEBUaRVreAUKc337U0HfrDHHlS 5a8MYMZt03fAqkVN125j3yP1JM3utkfrxdrzg7uOJFLzAVlnsCgPSNZoobnRF1KxZy5O a42GH2sYCKhMpkTX+fZVcxEpdtyeLkDct3D6i+9J83qnKWRFKRuCcDeoVPQXe03up6e4 9rgPu1oA4OpuxgDnKQLNcIamJOmpM8DQD/AG1MdADAC+ZWCyCXz13c8vN4tB+SYicnH1 TCqKjRzAfpoODnEYED40hYYR+gHIUGS0Euhup+7LWt18rKnkhzwz5W7geQgo9zsAxmEw l4vA==
MIME-Version: 1.0
Received: by 10.112.51.233 with SMTP id n9mr6235274lbo.47.1355774044420; Mon, 17 Dec 2012 11:54:04 -0800 (PST)
Sender: barryleiba.mailing.lists@gmail.com
Received: by 10.112.12.166 with HTTP; Mon, 17 Dec 2012 11:54:04 -0800 (PST)
In-Reply-To: <p1txrkkc9p.fsf@d72933.na.sas.com>
References: <6B4F2945-EC54-4171-92FF-3A88CEB27D23@mnot.net> <p1txrkkc9p.fsf@d72933.na.sas.com>
Date: Mon, 17 Dec 2012 14:54:04 -0500
X-Google-Sender-Auth: z6y0iyqd_S-NYxSQQwb-AifMduk
Message-ID: <CAC4RtVDaxJRXw-LkEfot6gkJyDY9ncRdc9oD8WdNwMsi+20nQw@mail.gmail.com>
Subject: Re: draft-ietf-appsawg-json-pointer-07 - array index for end ofarray
From: Barry Leiba <barryleiba@computer.org>
To: "David J. Biesack" <David.Biesack@sas.com>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: Mark Nottingham <mnot@mnot.net>, IETF discussion list <ietf@ietf.org>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Dec 2012 19:54:07 -0000

>> This was discussed in the Working Group, but it wasn't felt that the added
>> complexity was worth it; there's a strong feeling that this spec should be as
>> simple as possible.
>
> Might I suggest, however, using -1 instead of "-" to refer to the last item in an
> array, as this provides two benefits:
>
> 1) Allows for adding the complexity down the road in a compatible way, should
>    there be need
> 2) Uniformity; i.e. always using integer values for referring to array elements.

I have to say that this suggestion sounds very compelling to me, for
both reasons.  I know there's a bunch of running code out there, but
this (and perhaps teasing apart the "add" and "insert" concepts into
separate verbs) seems worth the bother.

Barry, as participant