[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.



On 11/26/2013 6:17 AM, Peter Bex wrote:
On Tue, Nov 26, 2013 at 09:44:27PM +0900, Alex Shinn wrote:
On Tue, Nov 26, 2013 at 12:34 PM, Michael Montague <mikemon@xxxxxxxxx>wrote:

Why can the procedure 'regexp' be called with an already compiled <re>
which is just returned?
Convenience, I'd say.  That way you can create modules which have an
interface that accepts either SREs or regexp objects (like irregex does),
having it automatically compile SREs.

I propose dropping the requirement that 'regexp' can be called with an already compiled <re>. It provides no additional functionality and it makes the specification of 'regexp' less clear.