[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master baf331e 3/3: Rename replace-in-string to string-replace
From: |
Lars Ingebrigtsen |
Subject: |
Re: master baf331e 3/3: Rename replace-in-string to string-replace |
Date: |
Mon, 28 Sep 2020 17:44:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Kangas <stefan@marxist.se> writes:
> Robert Pluim <rpluim@gmail.com> writes:
>
>> Do we need a (defalias 'string-replace-regexp
>> 'replace-regexp-in-string)?
>
> Or (define-obsolete-function-alias 'replace-regexp-in-string
> #'string-replace-regexp "28.1")
I sympathise with the impulse, because `replace-regexp-in-string' is
probably the most awkward of the commonly used function names, in my
extremely, super-duper, incredibly humble opinion (nobody has humbler
opinions than I do, everybody knows that).
But I don't think the churn would be worth it. (And shouldn't it be
`re-replace'? `regexp-replace-string'? Let the bikeshedding commence!)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Re: master baf331e 3/3: Rename replace-in-string to string-replace,
Lars Ingebrigtsen <=