Re: [Slim] Collapse attribute syntax to one line in draft-ietf-slim-negotiating-human-language

Randall Gellens <rg+ietf@randy.pensive.org> Fri, 09 June 2017 19:02 UTC

Return-Path: <rg+ietf@randy.pensive.org>
X-Original-To: slim@ietfa.amsl.com
Delivered-To: slim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 21F061250B8 for <slim@ietfa.amsl.com>; Fri, 9 Jun 2017 12:02:20 -0700 (PDT)
X-Quarantine-ID: <uFeoTZ-MTzrx>
X-Virus-Scanned: amavisd-new at amsl.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=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 uFeoTZ-MTzrx for <slim@ietfa.amsl.com>; Fri, 9 Jun 2017 12:02:18 -0700 (PDT)
Received: from turing.pensive.org (turing.pensive.org [99.111.97.161]) by ietfa.amsl.com (Postfix) with ESMTP id 60120128896 for <slim@ietf.org>; Fri, 9 Jun 2017 12:02:18 -0700 (PDT)
Received: from [99.111.97.136] (99.111.97.161) by turing.pensive.org with ESMTP (EIMS X 3.3.9); Fri, 9 Jun 2017 12:04:58 -0700
Mime-Version: 1.0
Message-Id: <p06240606d560a0a58350@[99.111.97.136]>
In-Reply-To: <7b4df8c5-4249-7799-79d3-0dd954b82dd3@nostrum.com>
References: <p06240602d550f5367daa@[99.111.97.136]> <p06240602d55258b37fa7@[99.111.97.136]> <B8657F32-BB22-40FE-8D09-6EB3EC4408D9@gsma.com> <dce40ab8-e4d7-c36a-7731-934f3291c643@omnitor.se> <7b4df8c5-4249-7799-79d3-0dd954b82dd3@nostrum.com>
X-Mailer: Eudora for Mac OS X
Date: Fri, 09 Jun 2017 12:02:15 -0700
To: Adam Roach <adam@nostrum.com>, Gunnar Hellström <gunnar.hellstrom@omnitor.se>, slim@ietf.org
From: Randall Gellens <rg+ietf@randy.pensive.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/slim/ouptjPkWRDN03S1g-DAOPNMqNx4>
Subject: Re: [Slim] Collapse attribute syntax to one line in draft-ietf-slim-negotiating-human-language
X-BeenThere: slim@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Selection of Language for Internet Media <slim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/slim>, <mailto:slim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/slim/>
List-Post: <mailto:slim@ietf.org>
List-Help: <mailto:slim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/slim>, <mailto:slim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Jun 2017 19:02:20 -0000

At 5:47 PM -0500 6/7/17, Adam Roach wrote:

>  On 6/1/17 9:33 AM, Gunnar Hellström wrote:
>>  Maybe the main question is: Will our own 
>> one-line syntax really be less complex to 
>> parse than the Accept-Language syntax that we 
>> might be able to find ready library routines 
>> for?
>>  Adam Roach had views on complexity to parse 
>> different solutions. Maybe you, Adam can have 
>> a view on this?
>
>
>  As long as it is a space-delimited list of 
> tokens, it should be trivial. That's a pretty 
> common SDP pattern.

That's what's in the draft now (based on your earlier suggestion).

Paul has proposed a syntax using semicolons 
instead of spaces.  If that will make the parsing 
even slightly more complicated, I'd be inclined 
to stick with the simple space-delimited list we 
have now, and if we find that we do need to add 
parameters, we introduce new attributes at that 
time.

>  The prospect of bolting a parser from some 
> other protocol (e.g. Accept-Language) onto an 
> SDP parsing library seems like it would be 
> quite complex. The libraries I've worked with 
> would almost certainly find it easier to write 
> such a parser from scratch.
>
>  /a
>
>  _______________________________________________
>  SLIM mailing list
>  SLIM@ietf.org
>  https://www.ietf.org/mailman/listinfo/slim


-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
Nothing is illegal if one hundred businessmen decide to do it.
        --Andrew Young