From: Michael Heerdegen <michael_heerdegen@web.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 42323@debbugs.gnu.org
Subject: bug#42323: 26.3; Doc string of `seq-map'
Date: Wed, 09 Dec 2020 20:24:17 +0100 [thread overview]
Message-ID: <87tusuye8u.fsf@web.de> (raw)
In-Reply-To: <87v9dbx724.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 09 Dec 2020 17:44:51 +0100")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> or whether that's achieved by defgeneric is immaterial to people using
> seq-map: The interface to use remains identical.
That's one side, yes. OTOH, the information might matter in some cases,
e.g. when I want to know whether some interface is implemented for, say,
streams, in this case. Or when the docstring mentions some special
properties of an interface for a certain class of objects the user needs
to know about.
Maybe we can find a compromise, e.g. a list of all implementations,
comma separated, not wasting much space, and then what we have now but
only for those implementations that have a docstring. With the rule
that an implementation should have a docstring if and only if the
interface has some special property. Does that make sense?
> > I wonder to what that is actually referring to. There is only one
> > implementation in seq.el...?
>
> There's two:
>
> (cl-defgeneric seq-map (function sequence)
> (cl-defmethod seq-map (function (sequence sequence))
Ah, I didn't notice that the first is the default (maybe that could be
mentioned), and that the word "sequence" has two meanings here: one
includes e.g. streams (that's were the default is used) and one is the
classical sense that excludes streams and is faster than the default.
Michael.
next prev parent reply other threads:[~2020-12-09 19:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-11 16:01 bug#42323: 26.3; Doc string of `seq-map' Drew Adams
2020-12-09 13:41 ` Lars Ingebrigtsen
2020-12-09 16:11 ` Michael Heerdegen
2020-12-09 16:44 ` Lars Ingebrigtsen
2020-12-09 19:24 ` Michael Heerdegen [this message]
2020-12-09 20:00 ` Drew Adams
2020-12-09 20:19 ` Lars Ingebrigtsen
2021-09-25 15:25 ` Stefan Kangas
2021-09-25 16:10 ` bug#42323: [External] : " Drew Adams
2021-09-25 16:21 ` Eli Zaretskii
2021-09-25 16:43 ` Stefan Kangas
2021-09-25 16:28 ` Stefan Kangas
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=87tusuye8u.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=42323@debbugs.gnu.org \
--cc=larsi@gnus.org \
/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).