RE: draft-gregorio-uritemplate-02.txt

>> 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