Re: rx/abc$/

2005-04-18 Thread Roie Marianer
LW = Larry Wall AT = Autrijus Tang LW> I think I have to clarify what I mean by that last phrase. Trailing LW> delimiters are hidden inside any token that has already been started, LW> but not at the start of a token (where token is taken to be fairly LW> restrictive). AT> Consider this: AT> AT>

Re: Context of hash slices; quotation adverbs

2005-04-18 Thread Roie Marianer
> : But when you start interpolating, you get into a big mess: > : h<\qq[$interpolated]> = want(); # ??? > : h<<$foo>> = want(); # ??? > > I think that, as with functions called in unknown context, we should > just force the RHS here to list context, and rely on the RHS to add > extra context as

Re: [pugs] Quoting constructs

2005-04-17 Thread Roie Marianer
On Saturday 16 April 2005 7:40 pm, Larry Wall wrote: > : Basically I'm wondering if there's a detailed > : specification of how <<>> should work. > > That's a really good question, and since I don't offhand know the > right answer, I'll put this up onto the fence so it can topple over > into p6l-la

Context of hash slices; quotation adverbs

2005-04-17 Thread Roie Marianer
Hi all, I'm back with more quoting construct madness. First, context of hash slices: Hash slices with {} notation are trivially either scalars or lists: $h{'foo'} = want(); # Scalar $h{'foo','bar'} = want(); # List With <> notation the same thing happens: $h = want(); # Scalar $h = want(); #

Re: Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Roie Marianer
On Saturday 16 April 2005 10:10 pm, Larry Wall wrote: > So > this is a syntax error (of the runaway "" variety, presumably): > > " @foo::bar::baz::fee::fie::foe[ " I was with you until that. What about " @foo::bar::baz::fee::fie::foe[ "1" ] " Isn't that a valid index into the array? Or is that

Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Roie Marianer
Hi all. I'm trying to get quoting interpolation to work, which means I first have to understand it a little better. In Perl 5, as far as I can see, the delimiter of quoting constructs (whether it's "", '' or qq ) is searched for before the string is parsed. This means that, for example, "%ha