guile-user
[Top][All Lists]
Advanced

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

Re: regex-case


From: Matt Wette
Subject: Re: regex-case
Date: Wed, 10 Feb 2016 17:19:37 -0800

> On Feb 6, 2016, at 11:13 AM, Matt Wette <address@hidden> wrote:
> 
> I have always missed the ease provided by Perl in throwing a string at a list 
> of regular expressions.   I have thought it would be nice if the (ice-9 
> regex) module would provide something comparable .   So I started work on a 
> macro “regex-case”.    Code attached.
> Comments on syntax appreciated. — Matt
> 

> I was thinking the above expansion has some chance (if it lives in the regex 
> module?) to memoize the make-regexp part during optimization.  

I am going to try to optimize by using eval-when and narrowing the syntax to 
use only constant strings for the case items.

I will post update if I can get it working.

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]