[REBOL] Re: parse, again...
From: hallvard:ystad:helpinhand at: 6-Nov-2001 8:28
[nitsch-lists--netcologne--de] skrev (Tuesday 06.11.2001, kl. 04.02):
>thread started like
> parse "this that something some others"[some[thru "something"|thru end]]
>this was the way the thread-starter used it intuitively,
>and wondered why 'parse said "not successfully parsed"
Actually, I wasn't using "thru end" _intuitively_, although it was among my
different approaches. But once I thought about it, I _do_ find it logic to
be able to do a parse "thru end", since 'end is indeed defined as a
something (even though simply a marker) after the last character in a
string. "To end" produces an infinite loop (guess this is a bug), so I
ended up using 'skip.
Whatever is the most logical solution, "to end" or "thru end," is a
philosophical or computer technical question that I won't probe into. But
the discussion following my question has been interesting, and thank you
all for helping to answer my question.
>but because [thru "something"] means "all including this is parsed",
>[thru end] could well mean "all including end is parsed" IMHO.
>i would like it.
I would too, but I'd like just as much that "to end" would simply work...