Re: [Json] Using a non-whitespace separator (Re: Working Group Last Call on draft-ietf-json-text-sequence)

Paul Hoffman <paul.hoffman@vpnc.org> Sun, 01 June 2014 23:11 UTC

Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 61B881A00D7 for <json@ietfa.amsl.com>; Sun, 1 Jun 2014 16:11:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level:
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r73nyc3Cd_BK for <json@ietfa.amsl.com>; Sun, 1 Jun 2014 16:11:08 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE5BF1A00CF for <json@ietf.org>; Sun, 1 Jun 2014 16:11:07 -0700 (PDT)
Received: from [10.20.30.90] (50-1-51-90.dsl.dynamic.fusionbroadband.com [50.1.51.90]) (authenticated bits=0) by hoffman.proper.com (8.14.8/8.14.7) with ESMTP id s51NAuIA068243 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 1 Jun 2014 16:10:58 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: hoffman.proper.com: Host 50-1-51-90.dsl.dynamic.fusionbroadband.com [50.1.51.90] claimed to be [10.20.30.90]
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <CAK3OfOhft+XJeMrg5rdY9E6fxAkJ2qsT3UHwu7zt=NEz2Q3XOQ@mail.gmail.com>
Date: Sun, 01 Jun 2014 16:10:55 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <15F00865-592D-41B2-8E23-6C794C4B77EF@vpnc.org>
References: <CAK3OfOidgk13ShPzpF-cxBHeg34s99CHs=bpY1rW-yBwnpPC-g@mail.gmail.com> <CAHBU6itr=ogxP4uoj57goEUSOCpsRx1AXVnW1NQwSTPxbbttkw@mail.gmail.com> <CAK3OfOhft+XJeMrg5rdY9E6fxAkJ2qsT3UHwu7zt=NEz2Q3XOQ@mail.gmail.com>
To: Nico Williams <nico@cryptonector.com>
X-Mailer: Apple Mail (2.1878.2)
Archived-At: http://mailarchive.ietf.org/arch/msg/json/M2nk76zi5BEczbL3Mc7p_7Hj75o
Cc: IETF JSON WG <json@ietf.org>
Subject: Re: [Json] Using a non-whitespace separator (Re: Working Group Last Call on draft-ietf-json-text-sequence)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Sun, 01 Jun 2014 23:11:15 -0000

<no hat>

On Jun 1, 2014, at 3:35 PM, Nico Williams <nico@cryptonector.com> wrote:

> On Sun, Jun 1, 2014 at 12:08 AM, Tim Bray <tbray@textuality.com> wrote:
>> On Sun, May 25, 2014 at 4:05 PM, Nico Williams <nico@cryptonector.com> wrote:
>> 
>>> Currently my thinking is that for backwards compatibility reasons I'd
>>> want to to make this RECOMMENDED though, not REQUIRED, except for
>>> cases where incomplete writes are a potential problem.
>> 
>> No. There should be only one way to do things.
> 
> I'm not terribly fond of this.
> 
> It'd be easier if we picked a Unicode whitespace character that's not
> used in the JSON whitespace rule and must be escaped in strings,
> preferably one that terminals and such generally handle as a
> whitespace.  

What would a whitespace character be "easier" than a character not allowed in Unicode? It seems to me that a character that could not exist in a string and therefore never needs to be escaped is "easier".

> Failing that a character that terminals will ignore.

I suspect most terminals would ignore FEFF. But I don't think that's actually as important as the fact that it doesn't require escaping.

> But since the problem we're talking about is only relevant to log-like
> writing patterns, I'd prefer to make this optional for writers,
> mandatory for readers.

Make what optional for writers and mandatory for readers?

--Paul Hoffman