Re: Last Call: <draft-ietf-appsawg-json-patch-08.txt> (JSON Patch) to Proposed Standard

Barry Leiba <barryleiba@computer.org> Sun, 16 December 2012 23:13 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 CF9CF21F8738; Sun, 16 Dec 2012 15:13:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.044
X-Spam-Level:
X-Spam-Status: No, score=-103.044 tagged_above=-999 required=5 tests=[AWL=-0.067, 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 5jtdSH3Xzr9b; Sun, 16 Dec 2012 15:13:02 -0800 (PST)
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by ietfa.amsl.com (Postfix) with ESMTP id 3957021F86D9; Sun, 16 Dec 2012 15:13:01 -0800 (PST)
Received: by mail-lb0-f172.google.com with SMTP id y2so4157158lbk.31 for <multiple recipients>; Sun, 16 Dec 2012 15:12:56 -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=XdPW6Em3ERt9x+ZG9pqrK7feXlcbz5aFYfBkS0Qxq4c=; b=jAaX9cKoJhomGJr/GqOcqHjDt1Hnbw/TU95k9rJyBqUypyFqULQpRbg+W7u1g3fJ2t MAaJXVhmxAm1aTS01A40tLcX5pdgVFcako5z/RtEXJakkEK5T5KSECM3sAigdQ3CAfRc mFl014JnPHESPKPmXdx5eluNupA98dRevldNhUSzFyvHzlWJ0VCbnE/nIzkTSxhP8Pb0 eXaFVxXmxkOJOzqHedKJqbiLcOecNVqUQUxSAJjB2NoQOPWttLtqTqnLGgW+NKYK2J9O XrKV0wuMGGCjijAOTtX6TdWSLhJAlqU+EVMVGyXDaQvTSwm4DE43vhWFH6E2WlHJIYjv tKyQ==
MIME-Version: 1.0
Received: by 10.112.101.135 with SMTP id fg7mr5087581lbb.87.1355699575857; Sun, 16 Dec 2012 15:12:55 -0800 (PST)
Sender: barryleiba.mailing.lists@gmail.com
Received: by 10.112.12.166 with HTTP; Sun, 16 Dec 2012 15:12:55 -0800 (PST)
In-Reply-To: <CAC4RtVCdE5jK4hm_wgzfrOQZ3edmYosyRz=xck06Hxz068AK_Q@mail.gmail.com>
References: <20121211150005.28209.96763.idtracker@ietfa.amsl.com> <CAC4RtVBNxQu03hZxFZiRg-7s2G_KYKFJjUUvSC_UUFwE_FZFdg@mail.gmail.com> <3448719B-185A-476A-A927-25A68D4B4358@mnot.net> <CALaySJ+BMsBJt7wWHN90itdPcqUqSd0gMh_YzmHZpN=8jcKJJA@mail.gmail.com> <82A453F8-9F1A-4427-B238-A63B43447F21@mnot.net> <CALaySJJ33RjEJRNbY3-PREMbE76SyFi+hpQg2BwgFd8N2DOWNw@mail.gmail.com> <E22F085E-5C3C-4628-BAF9-0AE3FA32063D@mnot.net> <CAC4RtVCdE5jK4hm_wgzfrOQZ3edmYosyRz=xck06Hxz068AK_Q@mail.gmail.com>
Date: Sun, 16 Dec 2012 18:12:55 -0500
X-Google-Sender-Auth: 2OE11SKONsT-ucV1TskA7vwKvlw
Message-ID: <CAC4RtVDRt5xkvcpf54x0tkZpQcK6=r-WuhVPW5zisJD2pyn=-Q@mail.gmail.com>
Subject: Re: Last Call: <draft-ietf-appsawg-json-patch-08.txt> (JSON Patch) to Proposed Standard
From: Barry Leiba <barryleiba@computer.org>
To: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: IETF discussion list <ietf@ietf.org>, "apps-discuss@ietf.org" <apps-discuss@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: Sun, 16 Dec 2012 23:13:05 -0000

Anyone have any comments on what I suggested below?

Barry

On Tue, Dec 11, 2012 at 11:25 PM, Barry Leiba <barryleiba@computer.org> wrote:
>> Personally -- to me, it seems like you're getting hung up on the word "add."
> ...
>> "add" means what the format definition says it means, because otherwise
>> we have to rationalise all of the different systems people might use it with
>> to make sense.
>
> OK, I'll buy that.  Then let's take a different approach, and make it
> clearer that it's Humpty Dumpty's version of "add", so maybe neither I
> nor Alice will get hung up on it:
>
> OLD
>    The "add" operation adds a new value at the target location. The
>    operation object MUST contain a "value" member that specifies the
>    value to be added.
> NEW
>    The "add" operation performs the following function, depending upon
>    what the target location references (see details below):
>
>    o  If the target location specifies an array index, a new value is
>       inserted into the array at the specified index.
>
>    o  If the target location specifies an object member that does not
>       already exist, a new member is added to the object.
>
>    o  If the target location specifies an object member that does
>       exist, that member's value is replaced.
> END
>
> That may be wordier than we need, but I think it makes the point...
> feel free to wordsmith.  With something like that, I think we can say
> that we had to pick a name, "add" was picked, and it means exactly
> what we choose it to mean - neither more nor less.  And that's glory
> for you.
>
> Barry