From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 13082@debbugs.gnu.org
Subject: bug#13082: 24.3.50; Enhancement request: let `compare-strings', like `string-lessp', accept symbols
Date: Mon, 31 May 2021 10:35:01 +0200 [thread overview]
Message-ID: <87k0nfgv2i.fsf@gnus.org> (raw)
In-Reply-To: <87shy563gj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 28 Apr 2016 19:35:56 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> "Drew Adams" <drew.adams@oracle.com> writes:
>
>> Not important, but why not let `compare-strings', like `string-lessp',
>> accept a symbol for either of its string parameters?
>
> I think that makes sense. There's no ambiguity here, and I like being
> able to use symbols more without converting.
Thinking about this for five more years, I don't think extending this
function to take symbols would help that much. The signature is:
(compare-strings STR1 START1 END1 STR2 START2 END2 &optional
IGNORE-CASE)
So the function isn't really for comparing strings, but comparing string
prefixes. Looking at the Emacs tree, comparing symbol name prefixes
doesn't seem to happen a lot, so I think complicating the signature this
way wouldn't yield much extra convenience. Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2021-05-31 8:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-04 18:46 bug#13082: 24.3.50; Enhancement request: let `compare-strings', like `string-lessp', accept symbols Drew Adams
2016-04-28 17:35 ` Lars Ingebrigtsen
2021-05-31 8:35 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0nfgv2i.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=13082@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).