Re: [apps-discuss] Question about URI template and expansion of an empty list

Erik Wilde <> Fri, 26 April 2013 17:20 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 6CADE21F997D for <>; Fri, 26 Apr 2013 10:20:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id Pt7Hcx0MqRDM for <>; Fri, 26 Apr 2013 10:20:38 -0700 (PDT)
Received: from cm04fe.IST.Berkeley.EDU (cm04fe.IST.Berkeley.EDU []) by (Postfix) with ESMTP id 6FA1021F9971 for <>; Fri, 26 Apr 2013 10:20:38 -0700 (PDT)
Received: from ([] helo=dretair.local) by with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth (envelope-from <>) id 1UVmK2-00043n-E3; Fri, 26 Apr 2013 10:20:35 -0700
Message-ID: <>
Date: Fri, 26 Apr 2013 10:20:31 -0700
From: Erik Wilde <>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: "" <>
References: <> <> <> <>
In-Reply-To: <>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: Joe Gregorio <>
Subject: Re: [apps-discuss] Question about URI template and expansion of an empty list
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 26 Apr 2013 17:20:39 -0000

hello joe.

thanks for the response!

On 2013-04-17 07:03 , Joe Gregorio wrote:
> On Mon, Apr 8, 2013 at 1:41 AM, Erik Wilde <> wrote:
>> (line 234) says it's "X", but i am really interested in the "why"
>> explanation as well. says
>> that
> The answer is in the text you quote:
> "for each defined variable in the variable-list, append '.' to the
> result string and then perform variable expansion"
> The set of variables in the variable list is the empty set, so no '.'
> is appended.
> I agree that if this is confusing an addendum is in order.

... and just when i wanted to submit an erratum and searched for the 
best place where to put clarifying text, i ran into the last paragraph 
of :

"A variable defined as a list value is considered undefined if the list 
contains zero members. A variable defined as an associative array of 
(name, value) pairs is considered undefined if the array contains zero 
members or if all member names in the array are associated with 
undefined values."

while still being a bit of an unintuitive definition for me, it seems as 
if this particular paragraph was never mentioned in previous 
discussions, and indeed clarifies that an empty array should be 
considered as an "undefined variable". for now, i'll assume that this 
settles things and will not file an erratum. but if people think 
(fracis? james?) that this still isn't good enough, then please speak up.

thanks and cheers,


erik wilde |  -  tel:+1-510-2061079 |
            | UC Berkeley  -  School of Information (ISchool) |
            | |