Re: [ietf-822] [abnf-discuss] Wherefore no HTAB in literal text strings in ABNF

Sean Leonard <dev+ietf@seantek.com> Fri, 19 August 2016 02:46 UTC

Return-Path: <dev+ietf@seantek.com>
X-Original-To: ietf-822@ietfa.amsl.com
Delivered-To: ietf-822@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 62EFF12D6AC; Thu, 18 Aug 2016 19:46:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=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 GI80uV5hJBOY; Thu, 18 Aug 2016 19:46:35 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8FD8C12D61D; Thu, 18 Aug 2016 19:46:35 -0700 (PDT)
Received: from [192.168.123.110] (unknown [75.83.2.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 3A70050A73; Thu, 18 Aug 2016 22:46:33 -0400 (EDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_8D922E2C-A243-4F83-A2ED-B5DB2A31907C"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Sean Leonard <dev+ietf@seantek.com>
In-Reply-To: <086d03bc-d9e0-5fab-ee87-aa8bcc3faaea@bayleaf.org.uk>
Date: Thu, 18 Aug 2016 19:47:03 -0700
Message-Id: <D20A6BA4-9BE9-4796-B16C-BAA43FA1B9B9@seantek.com>
References: <3CCAE9E2-DCE8-4AEC-9FDE-FA00A0C3727E@seantek.com> <086d03bc-d9e0-5fab-ee87-aa8bcc3faaea@bayleaf.org.uk>
To: Paul Overell <paul@bayleaf.org.uk>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-822/bW6oxEOLRsjReBiadNCAC1bgsss>
Cc: ietf-822@ietf.org, ABNF-Discuss <abnf-discuss@ietf.org>
Subject: Re: [ietf-822] [abnf-discuss] Wherefore no HTAB in literal text strings in ABNF
X-BeenThere: ietf-822@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Discussion of issues related to Internet Message Format \[RFC 822, RFC 2822, RFC 5322\]" <ietf-822.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-822>, <mailto:ietf-822-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-822/>
List-Post: <mailto:ietf-822@ietf.org>
List-Help: <mailto:ietf-822-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-822>, <mailto:ietf-822-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Aug 2016 02:46:37 -0000

> On Aug 15, 2016, at 2:02 AM, Paul Overell <paul@bayleaf.org.uk> wrote:
> 
> 
> 
> On 15/08/16 02:34, Sean Leonard wrote:
>> Hello Knowledgeable ABNF Folks:
>> 
>> I have been working with RFC 5234 lately. What is the rationale (or what are the rationales) for including SP %d32 but excluding HTAB %d9 in char-val, aka the literal text string? I am sure that this decision was not an oversight.
>> 
>> It may be appreciated that the comment production is defined as WSP, which includes HTAB.
>> 
>> 
> 
>    char-val       =  DQUOTE *(%x20-21 / %x23-7E) DQUOTE
>                                 ; quoted string of SP and VCHAR
>                                 ;  without DQUOTE
> 
> So that the contents of a string literal are visible and unambiguous to a human reader - spaces and tabs look alike.  For comments is doesn't matter if the white space comprises of spaces or tabs, it doesn't change the meaning of a comment.  But for strings it's important for a human reader to know exactly what's in them. 
> 
> 
> Regards
> -- 
> Paul Overell

Thank you. That was one of the justifications that I was thinking, and what I was looking for.

Best regards,

Sean