> On Feb 6, 2016, at 11:49 AM, Marko Rauhamaa <[email protected]> wrote:

> Only two additions would be needed to make it better:
> 
> [1] Python's named substrings: (?P<name>...)
>     (<URL: https://docs.python.org/3/library/re.html?highlight=regex#reg
>     ular-expression-syntax>)
> 
> [2] Seamless constant string concatenation as in C:
> 
>     #define PREFIX "..."
>     #define MIDDLE "..."
>     #define SUFFIX "..."
>     ...
>     {
>         int status = regcomp(&reg, PREFIX MIDDLE SUFFIX, 0);
>     }
> 

[1] will be tough IMO because it is not supported by the underlying regexp 
library used by Guile.

[2] may be possible if it is supported by the Guile regexp library.  But I’m 
not sure there is a clean way to do this, given that syntax-case bindings are 
lexical.

Matt



Reply via email to