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: Stefan Monnier
Subject: Re: Improve `replace-regexp-in-string' ergonomics?
Date: Wed, 22 Sep 2021 14:01:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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


        Stefan




reply via email to

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