W3C home > Mailing lists > Public > uri@w3.org > December 2007

RE: draft-gregorio-uritemplate-02.txt

From: Manger, James H <James.H.Manger@team.telstra.com>
Date: Mon, 3 Dec 2007 10:43:37 +1100
Message-ID: <6215401E01247448A306C54F499111F2038F6D1F@WSMSG2103V.srv.dir.telstra.com>
To: "URI" <uri@w3.org>
>> More importantly, we need easy support for query parameters where the
>> query name does not match the variable name. We need easy support for
>> the leading '?' or '&'.

> Just for comparison sake, here's how it would look with the current
> approach...
>
>  /foo{-opt|?|b,d}{-prefix|a=|b}{-opt|&|b,d}{-prefix|c=|d}


That works, but only for 2 variables. My example had three. That is where it gets really dicey (or impossible).

Even this line with 2 variables is ugly -- awkward to write, awkward to understand, with variable names in triplicate.

/foo{?a=b}{&c=d} is so much simpler.
Received on Sunday, 2 December 2007 23:44:05 UTC

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