From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Generic functions: Specializers like `or' or `memq'?
Date: Wed, 03 Nov 2021 14:32:27 -0700 [thread overview]
Message-ID: <87a6ilorh0.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87ilx9hrn6.fsf@web.de
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Philip Kaludercic <philipk@posteo.net> writes:
>
>> I haven't tried it myself, but it seems like you would have to use
>> cl-generic-generalizers (see cl-generic.el) to do so.
>
> Yes, it should be doable. I find it a bit suspicious that this is not
> already available.
My understanding is that these more computationally-intensive
generalizers have the potential to seriously slow down method funcalls,
and so we're sort of gently discouraged from doing that. Obviously once
you've got this tool you're bound to try to use it everywhere, but I
think in general it's supposed to work better to move tightly-focused
generalization into a `cond' inside the method body, or what have you.
Is anyone else's brain incapable of maintaining the distinction between
"specializer" and "generalizer"? I cannot remember which is which, or
exactly how they differ, and its one of the major obstacles to me
actually reading and understanding cl-generic.el.
Eric
next prev parent reply other threads:[~2021-11-03 21:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 17:17 Generic functions: Specializers like `or' or `memq'? Michael Heerdegen
2021-11-03 18:21 ` Philip Kaludercic
2021-11-03 21:10 ` Michael Heerdegen
2021-11-03 21:32 ` Eric Abrahamsen [this message]
2021-11-03 23:19 ` Michael Heerdegen
2021-11-03 23:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-11-04 0:26 ` Michael Heerdegen
2021-11-04 1:31 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-04 2:34 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-04 4:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-11-06 22:32 ` Michael Heerdegen
2021-11-06 23:36 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-07 1:48 ` Michael Heerdegen
2021-11-21 19:43 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-23 8:16 ` Michael Heerdegen
-- strict thread matches above, loose matches on Subject: below --
2021-11-04 17:31 Eric Abrahamsen
2021-11-05 21:17 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-05 21:36 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-11-06 23:29 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-06 23:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6ilorh0.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.