[REBOL] Re: parse question
From: brett:codeconscious at: 27-Jun-2001 12:18
Hi Graham,
> If parse always returns a string
USAGE:
PARSE input rules /all /case
If rules is a block parse returns true or false.
Just being pedantic :)
> eg: parse {a="b"} [ thru {a="} copy test to {"} ]
>
> and 'test is now a string containing "b"
>
> shouldn't
>
> parse {a=""} [ thru {a="} copy test to {"} ]
>
> 'test now be an empty string rather than type none! ?
>
I guess is depends on how you see it, either as "nothing to copy" (none!) or
copied a string of zero length
(empty).
Also, I don't see that it makes a lot of difference - except for perhaps
some more if statements in some circumstances.
Brett