Erik Steven Harrison:
# We all know how to alias things in Perl 5. The binding
# operator allows aliasing in Perl 6, I understand. So,
# how do we alias grammer rules? Here are my guesses.
Rules are just subs or methods, so you do it the same way you do a sub
or method. (I think. :^) )
--Bren
I don't usually have problems with commitment...
I think I can distinguish :: from ::: - :: fails the current branch point,
whereas ::: fails the entire rule. I can do ::: trivially.
I think I can distinguish between ::: and ; the implementation
is a bit tricky, because ::: fails the current ma
> I think I can distinguish :: from ::: - :: fails the current branch point,
> whereas ::: fails the entire rule.
Correct.
> I think I can distinguish between ::: and ; the implementation
> is a bit tricky, because ::: fails the current match - easy enough -
> whereas has to specify to all upp
[EMAIL PROTECTED] (Damian Conway) writes:
> It's not an exception, but you could certainly *implement* it that way.
I would argue that it is in some sense, if not an Official Perl 6 Exception,
since it jumps out of several levels of a match. But yeah, I'm probably
just looking at this from an imp
> The behaviour is explained quite well in E5 I think.
Is that the "soon to be released" E5?
Paul
Simon Cozens wrote:
> While I'm messing about with REs, is it specified how :any and hypotheticals
> interoperate?
>
>"ab" =~ rx:any / $match := (\w) /;
>print $match;
>
> Can that be undefined behaviour? Please? :)
I don't think so.
It would probably result in $0 containing an array
Paul Marquess wrote:
> Is that the "soon to be released" E5?
No, that's the "to be released today" E5.
;-)
Damian
[EMAIL PROTECTED] (Paul Marquess) writes:
> Is that the "soon to be released" E5?
Sometime today, all being well.
--
I often think I'd get better throughput yelling at the modem.
> > Is that the "soon to be released" E5?
>
> No, that's the "to be released today" E5.
>
> ;-)
Yy!!