Subject: Re: [bug#69380] [PATCH] gnu: guile-irregex: Update to 0.9.11.

From: Tomas Volf <[email-masked]>
Date: Sun, 3 Mar 2024 17:57:27 +0100

On 2024-03-02 17:13:13 +0100, Ludovic Courtès wrote:
> > +                (for-each
> > +                 (lambda (f)
> > +                   (symlink (regexp-substitute #f (string-match "/([^/]+)$" f)
> > +                                               1 ".scm")
> > +                            f))
>
> I would avoid using regexps for such things: it’s heavyweight, hard to
> read, and error-prone.  Looks like you could do away with just
> ‘basename’ and the likes, no?

Yes, I think this could have been just (string-append (basename f) ".scm").  I
forgot there is such function, thanks for pointing it out.

Have a nice day,
Tomas

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.