Re: RFC 166 (disambiguator)

2000-08-29 Thread Richard Proctor

On Tue 29 Aug, Mark-Jason Dominus wrote:
> 
> 2. You can already write /$foo(?:)bar/ to get what you wanted.  This
>is almost identical to what Richard proposed anyway.

This has the effect I was after.

> 
> It is really not clear to me that this problem needs to be solved any
> better than it is already.
> 
> I suggest that this section be removed from the RFC.
> 

OK.  I was throwing up some ideas.   (I have a few more in development)



-- 

[EMAIL PROTECTED]




RFC 166 (disambiguator)

2000-08-29 Thread Mark-Jason Dominus


Richard Proctor suggests that (?) will match the empty string. 
Then it can be inserted into regexes to separate elements that need to
be separated.  For example, /$foo(?)bar/ interpolates the value of
$foo and then looks for that pattern followed by 'bar'.   You cannot
simply write /$foobar/ because then Perl tries to interpolate $foobar,
which is not what you wanted.

1. You can already write /${foo}bar/ to get what you wanted.  This
   solution already works inside of double-quoted strings.  (?) would
   not work inside of double-quoted strings.

2. You can already write /$foo(?:)bar/ to get what you wanted.  This
   is almost identical to what Richard proposed anyway.

It is really not clear to me that this problem needs to be solved any
better than it is already.

I suggest that this section be removed from the RFC.

Mark-Jason Dominus   [EMAIL PROTECTED]
I am boycotting Amazon. See http://www.plover.com/~mjd/amazon.html for details.