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: Basil L. Contovounesios
Subject: Re: Improve `replace-regexp-in-string' ergonomics?
Date: Wed, 22 Sep 2021 19:24:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier [2021-09-22 14:01 -0400] 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`),

Someone must have confused the words "anaphora" and "anathema" ;).

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

That would be a lot more hygienic,

-- 
Basil



reply via email to

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