[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regexp and valid-sre?

This page is part of the web mail archives of SRFI 115 from before July 7th, 2015. The new archives for SRFI 115 contain all messages, not just those from before July 7th, 2015.

Kevin Wortman scripsit:

> "Note that an SRE is a first-class object consisting of nested lists
> of strings, chars, char-sets, symbols and numbers. Where the syntax is
> described as (foo bar), this can be constructed equivalently as '(foo
> bar) or (list 'foo 'bar), etc."

Right.  So it's not a *disjoint* data type, as compiled re's and
regex-match objects are.  But that doesn't mean it doesn't deserve a
predicate, even if you have to be sure to check that predicate before
any of the built-in ones.

Do what you will,                       John Cowan
   this Life's a Fiction                cowan@xxxxxxxx
And is made up of                       http://www.ccil.org/~cowan
   Contradiction.  --William Blake