emacs-devel
[Top][All Lists]
Advanced

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

Re: Improve `replace-regexp-in-string' ergonomics?


From: Adam Porter
Subject: Re: Improve `replace-regexp-in-string' ergonomics?
Date: Wed, 22 Sep 2021 17:56:56 -0500

On Wed, Sep 22, 2021 at 1:02 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> >   (thread-as NAME EXPR &rest FORMS)
> >
> > I considered proposing one recently, but it seems like anaphoric macros
> > aren't popular around here.  :)
>
> I thought "anaphoric" is used for macros where you don't specify the
> name of the variable (it's typically the hardcoded `it`), whereas IIUC
> here you do specify it.  I don't like the usual anaphoric macros, but if
>
>     (thread-as FOO x
>       (bar x 6)
>       ...
>       (toto 45 x))
>
> turns into
>
>     (let* ((x FOO)
>            (x (bar x 6))
>            (x ...))
>       (toto 45 x))
>
> then I wouldn't consider that as "anaphoric" and so wouldn't stay away
> from it.

Maybe we need a new name for that kind of macro, then.  Euphemistic?  :)



reply via email to

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