emacs-devel
[Top][All Lists]
Advanced

[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: Robert Pluim
Subject: Re: master baf331e 3/3: Rename replace-in-string to string-replace
Date: Mon, 28 Sep 2020 14:21:44 +0200

>>>>> On Mon, 28 Sep 2020 13:14:49 +0200, Lars Ingebrigtsen <larsi@gnus.org> 
>>>>> said:

    Lars> Robert Pluim <rpluim@gmail.com> writes:
    >> Do we need a (defalias 'string-replace-regexp
    >> 'replace-regexp-in-string)?

    Lars> I'm not very enthusiastic about adding noun-verb aliases for the
    Lars> verb-noun functions we already have.  It makes reading code more
    Lars> confusing when we have several names for the same thing.

I agree, but in this case anyone who finds 'string-replace' is going
to have a harder time finding 'replace-regexp-in-string'. The two
functions are twins, they should be easy to find from one another.

    Lars> Discoverability is an issue, though, and I'm working on that.

We can always stick cross-references in the respective docstring, but
people are still going to wonder about the irregular naming.

Robert
-- 



reply via email to

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