On Wed, Apr 21, 2004 at 09:19:12PM +0200, Matthijs van Duin wrote:
> On Wed, Apr 21, 2004 at 01:02:15PM -0600, Luke Palmer wrote:
> >   macro infix:\ ($cont, $key)
> >       is parsed(/$?key := (-?<letter>\w* | \d+)/)
> >   {
> >       if $key ~~ /^\d+$/ {
> >           "($cont).[$key]";
> >       }
> >       else {
> >           "($cont).«$key»";
> >       }
> >   }
> >
> >That does all the magic at compile time.
> 
> True, but what about  $x\$y ? :-)

What about "$x\n"?  The backslash already has
meaning in strings, yet interpolating hashed
values is a common need.  There's a similar
problem inside a regex, where backslash would
be ambiguous.  The ambiguity can be resolved,
perhaps, but the confusion would make \ a poor
choice.

-- 

Reply via email to