Re: I-D Action:draft-yevstifeyev-abnf-separated-lists-01.txt

Bill McQuillan <McQuilWP@pobox.com> Tue, 07 December 2010 00:05 UTC

Return-Path: <McQuilWP@pobox.com>
X-Original-To: ietf@core3.amsl.com
Delivered-To: ietf@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7D5D63A68D7 for <ietf@core3.amsl.com>; Mon, 6 Dec 2010 16:05:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20QInGnV5ago for <ietf@core3.amsl.com>; Mon, 6 Dec 2010 16:05:58 -0800 (PST)
Received: from sasl.smtp.pobox.com (b-pb-sasl-quonix.pobox.com [208.72.237.35]) by core3.amsl.com (Postfix) with ESMTP id 4F2DC3A68D5 for <ietf@ietf.org>; Mon, 6 Dec 2010 16:05:58 -0800 (PST)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 125B08A12; Mon, 6 Dec 2010 19:07:21 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from :message-id:to:subject:mime-version:content-type :content-transfer-encoding; s=sasl; bh=fs15RmuDucgeNej1TcXdCtmDi cE=; b=UR8DOmmui4WXm6I4M4CMswHk56xorptzRqbnp7v0spo3kO6pm1ST53rui wG9SulaCLMz5GSkAdbsybKtPwqg+N/LN9lyF8QVeMM9yYhAFHJD/cHUUXA7OOSTp nn4+chkzir4xqZ7pC1fxFzaS/4Eo//YNWvDgUUzt7ORgZJ770U=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from :message-id:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=sasl; b=lR4uJjAEsPhYPLS/1In grLc33FYJAoEfIP0HO7QTVqdbVB6DspnlzsXJFpkEmXzo3SDs5H1neG8UozZcgFR 9RKXxeXa3m/SL8JfyfS3QmH+ANdqG9fzz2XdhYJw4xnue6eLyntrOiOr9/qj0T2M DqO+M4/9ebPHI0/fAYf1s5M8=
Received: from b-pb-sasl-quonix. (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id F34F38A10; Mon, 6 Dec 2010 19:07:19 -0500 (EST)
Received: from [192.168.0.2] (unknown [68.107.61.33]) by b-sasl-quonix.pobox.com (Postfix) with ESMTPA id 827C48A0F; Mon, 6 Dec 2010 19:07:18 -0500 (EST)
Date: Mon, 06 Dec 2010 16:07:17 -0800
From: Bill McQuillan <McQuilWP@pobox.com>
X-Priority: 3 (Normal)
Message-ID: <113441059.20101206160717@pobox.com>
To: IETF Discussion <ietf@ietf.org>
Subject: Re: I-D Action:draft-yevstifeyev-abnf-separated-lists-01.txt
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: F5608506-0195-11E0-93EB-8FD6ABFCE9A3-02871704!b-pb-sasl-quonix.pobox.com
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Tue, 07 Dec 2010 00:05:59 -0000

I found several problems with this draft.

In overview, the reason that we removed the #rule from ABNF was that it was
very difficult to specify for a general case. This draft has the same
problem.

The production given does not actually produce the desired results.

>   n^(a)m element = ( n(*LWS element) *o(*LWS a *LWS element))

If the usage is: 

    5^(",")10 "abc"
    
it would allow something like:

    abc abc abc abc abc abc , abc

not:

    abc, abc, abc, abc, abc, abc, abd

which was probably intended.

-----

The production:

>   a              = VCHAR / SP / HT / <any other separator>

does not seem to address the possibility of multi-character separators very
clearly. What if I want to define a list like:

    abc and def and ghi and jkl

can I use:

    ^(" and ")ident

-----

I also do not believe that *FWS belongs in such a general rule and should
rather be defined by the actual usage. E.g.:

    5^(*FWS "," *FWS)10 "abc"

-----

Typo: 2.1 Examples, fourth example should be: ^("-")element

-- 
Bill McQuillan <McQuilWP@pobox.com>