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: Eric Abrahamsen
Subject: Re: Improve `replace-regexp-in-string' ergonomics?
Date: Wed, 22 Sep 2021 16:53:20 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Adam Porter <adam@alphapapa.net> writes:

> 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?  :)

Eponymous!



reply via email to

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