[ZPT] Re: v2 of Path Prefixes in CVS

Shane Hathaway shane at zope.com
Sat Sep 13 03:04:14 EDT 2003


On 09/12/03 21:25, Evan Simpson wrote:
> Suppose we allow prefixed path segments to have the form ":Xarg", where 
> X is a punctuation character (other than '/', of course).  This would 
> refer to a prefix named 'X' with argument 'arg' -- that is, in the 
> expression "here/:#foo" the prefix is '#', in "here/?bar" it is '?', and 
> in "here/method/:(x, y)" it is '('!

You and I have a built up a biological tokenizer for path expressions. 
However, imagine trying to read such expressions for the first time.

"""
In the expression "there&@\.food" the prefix is ".", in "there&@+pole" 
it is "+", and in "there&@way&@\<<a|b>>" it is '<'!
"""

Punctuation wants to be separated and nearly unseen. :-)

Shane




More information about the ZPT mailing list