[REBOL] Re: Bug! Rebol's parsing of urls is incorrect.
From: al:bri:xtra at: 11-Feb-2001 21:03
Ryan wrote:
> Maybe 'type? should be as loose as possible, allowing for the greatest
flexibility on its use? A seperate pickier and slower data validation
function could be used to say that something is not ready for the outside
world. After all, 'type?'s docs just say "Returns a value's datatype," no
mention of validity.
What we really need is a validating parser/loader/scanner, one for each
scheme. I've been skimming through the schemes and noticed there's some
repetition in Rebol's open functions, which could be abstracted out. Also,
if a validating parser rule was incorporated into each scheme to check for
wellformedness, that would be good. As it stands now, I can't use Rebol's
'load/next function to extract a URL from plain text with punctuation around
it. For example extracting the URL from the following: "Rebol's HQ"
http://www.rebol.com! requires me to write my own URL parser.
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/