Re: URI Templates - optional variables?

Joe Gregorio scripsit:

> No, that was the point of my proposal, that if you look
> at the generic version:
> 
>    {<op><arg>|<vars>}
> 
> Only the value of 'arg' can put anything outside of 'unreserved'
> into the URI. 

Specifically, anything but unreserved characters and UTF-8-encoded
and %-escaped characters.

Per contra, the <arg> part can only put URI-legal characters into
the final URI; if you want a URI-illegal character, you must
UTF-8-encode and %-escape it yourself.

> What I'm interested in is if there are URIs that can't be
> generated by this scheme. Roy's example of the radix
> sorted directories was one, and I think substring selection
> should be added based on that use case. Are there others, and
> where do we draw an 80/20 line?

I think the only way to find out is to keep brainstorming
use cases and see if your proposals can cope or need extension.

-- 
John Cowan    cowan@ccil.org    http://ccil.org/~cowan
Heckler: "Go on, Al, tell 'em all you know.  It won't take long."
Al Smith: "I'll tell 'em all we *both* know.  It won't take any longer."

Received on Tuesday, 16 October 2007 05:18:46 UTC