[REBOL] Re: Parse and and recursion local variables?
From: petr:krenzelok:trz:cz at: 19-Mar-2007 10:02
> I agree completely. That, the missing thru[a | b] and the clumsy
> charsets are the biggest showstoppers for beginners IMHO. there are
> workarounds, but they need a lot explaining/insights.
>
I know that to/thru [a | b | c] MIGHT slow down parser. Noone says, it
has to do 3x find, evaluate index of match and return at lowest index.
It can internally behave just like any [a | b | c | skip]. The thing is,
that we said, that REBOL is about being easy. And above addition would
make parse easier to understand/use for novices. I am not sure it would
teach them to incline to bad habit. As for me, it is about - being able
to use parse, or not using parse at all! Or we need new docs, explaining
more properly how parse internally works, why you can't easily make your
variables local, even if you wish to, etc.
My opinion is, that when we find ourselves using workarounds or
shortcuts nearly all the time, we need to rethink the concept once
again, extend it, or introduce some mezzanine shortcut. I hope 'parse is
on the radar for R3, and that we get some helpers in-there ...
Petr