[plt-scheme] v3.99 pattern matching (doc bug and feature request)

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Feb 5 11:59:55 EST 2008

At Tue, 5 Feb 2008 11:49:06 -0500, "James Russell" wrote:
> Two things:
> 1) I can't seem to find any indication of what happens when pattern matching
> fails in the v3.99 reference manual.  That should be documented.
> 2) Could byte strings be added to the pattern matching syntax for literals,
> alongside traditional strings?

I've fixed the docs, including adding byte strings as patterns.

I hope that someone who knows the `match' implementation better than me
will add byte strings as patterns. Meanwhile, I note that you can quote
a byte string to form a pattern:

 > (match #"apple" ['#"apple" 'yep])
 yep


Thanks,
Matthew



Posted on the users mailing list.