W3C home > Mailing lists > Public > uri@w3.org > September 2011

Re: Uri Templates: Questions on draft-gregorio-uritemplate-06

From: Roy T. Fielding <fielding@gbiv.com>
Date: Fri, 9 Sep 2011 13:29:21 -0700
Cc: URI <uri@w3.org>
Message-Id: <C0EBD946-6FBF-481C-AABB-DC16B39F76A6@gbiv.com>
To: Marc Portier <marc.portier@gmail.com>
On Sep 8, 2011, at 11:34 PM, Marc Portier wrote:
> Can't say I have a problem with it, but surely the current approach has a very logic reason of existence, no?

The original was a bit of a coin toss.  Although it looks more consistent with
forms syntax to do

> {?list}    ?list=red,green,blue'
> {?list*}   ?list=green&list=red&list=blue

the reality is that most forms-processing libraries assume that
the names are unique.  They are usually processed as an associative
array or hash, so what happens is that the last parameter named
"list" wins.  That's why my first try at this pattern appended
a number to the subsequent names.

At this point, I am just going to say that if an application
actually wants the above, then it should supply an associative
array itself and not rely on funky list magic.  Also, someone
else requested the ability to define query parameters without
any =value, as in


which is possible (in the editor's draft) if we have

   a := "c"
   b := [ "d" ]


> So why not think about having both just more explicit by declaring two kinds of 'explodes' one 'named' (*), the other 'unnamed' (% maybe?)

Modifiers like explode effectively double the complexity of expansion,
so I am reticent to add any more unless there is a proven need.

Received on Friday, 9 September 2011 20:58:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:15 UTC