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

"David J. Biesack" <David.Biesack@sas.com> Mon, 17 December 2012 14:02 UTC

Return-Path: <David.Biesack@sas.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 6D68421F8AD6 for <ietf@ietfa.amsl.com>; Mon, 17 Dec 2012 06:02:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.478
X-Spam-Level:
X-Spam-Status: No, score=-3.478 tagged_above=-999 required=5 tests=[AWL=0.121, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 hnFW9OVtLNET for <ietf@ietfa.amsl.com>; Mon, 17 Dec 2012 06:02:25 -0800 (PST)
Received: from db3outboundpool.messaging.microsoft.com (db3ehsobe003.messaging.microsoft.com [213.199.154.141]) by ietfa.amsl.com (Postfix) with ESMTP id CB39421F8AD4 for <ietf@ietf.org>; Mon, 17 Dec 2012 06:02:24 -0800 (PST)
Received: from mail125-db3-R.bigfish.com (10.3.81.240) by DB3EHSOBE010.bigfish.com (10.3.84.30) with Microsoft SMTP Server id 14.1.225.23; Mon, 17 Dec 2012 14:02:23 +0000
Received: from mail125-db3 (localhost [127.0.0.1]) by mail125-db3-R.bigfish.com (Postfix) with ESMTP id 34C1C4A0171 for <ietf@ietf.org>; Mon, 17 Dec 2012 14:02:23 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:149.173.6.148; KIP:(null); UIP:(null); IPV:NLI; H:mercav06d.na.sas.com; RD:mercav06d.na.sas.com; EFVD:NLI
X-SpamScore: -2
X-BigFish: S-2(zz1432I1447Izz1de0h1202h1e76h1d1ah1d2ahzz8275ch17326ahz2fh2a8h668h839h944hcf6hd24hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1155h)
Received-SPF: pass (mail125-db3: domain of sas.com designates 149.173.6.148 as permitted sender) client-ip=149.173.6.148; envelope-from=David.Biesack@sas.com; helo=mercav06d.na.sas.com ; d.na.sas.com ;
Received: from mail125-db3 (localhost.localdomain [127.0.0.1]) by mail125-db3 (MessageSwitch) id 1355752941209829_8019; Mon, 17 Dec 2012 14:02:21 +0000 (UTC)
Received: from DB3EHSMHS017.bigfish.com (unknown [10.3.81.233]) by mail125-db3.bigfish.com (Postfix) with ESMTP id 27D15A0056 for <ietf@ietf.org>; Mon, 17 Dec 2012 14:02:21 +0000 (UTC)
Received: from mercav06d.na.sas.com (149.173.6.148) by DB3EHSMHS017.bigfish.com (10.3.87.117) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 17 Dec 2012 14:02:19 +0000
X-TM-IMSS-Message-ID: <a4a1fd3a002010bf@mercav06d.na.sas.com>
Received: from d72933.na.sas.com.na.sas.com ([10.23.16.81]) by mercav06d.na.sas.com ([10.36.10.11]) with ESMTP (TREND IMSS SMTP Service 7.1) id a4a1fd3a002010bf ; Mon, 17 Dec 2012 09:02:13 -0500
From: "David J. Biesack" <David.Biesack@sas.com>
To: Mark Nottingham <mnot@mnot.net>, ietf@ietf.org
Subject: Re: draft-ietf-appsawg-json-pointer-07 - array index for end ofarray
In-Reply-To: <6B4F2945-EC54-4171-92FF-3A88CEB27D23@mnot.net> (message from Mark Nottingham on Mon, 17 Dec 2012 11:33:41 +1100)
Date: Mon, 17 Dec 2012 09:02:10 -0500
Message-ID: <p1txrkkc9p.fsf@d72933.na.sas.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-OriginatorOrg: sas.com
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 14:02:29 -0000

Mark Nottingham <mnot@mnot.net> writes:

>> Suggestion: allow negative numbers to indicate a position counted from the end of the array instead "array/-".
>> [some measure of complexity omitted here...]

> David,
>
> 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.
>
> Cheers,

> --
> Mark Nottingham   http://www.mnot.net/

Understood - simplicity is a great Guiding Principle.

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.

Thanks for the consideration,
djb