[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generic functions: Specializers like `or' or `memq'?
From: |
Stefan Monnier |
Subject: |
Re: Generic functions: Specializers like `or' or `memq'? |
Date: |
Wed, 03 Nov 2021 22:34:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> This is not standard CLOS parlance, because CLOS does not include
> a mechanism to define new kinds of specializers: you can dispatch on
> (eql <VAL>) and you can dispatch on types and that's that (tho IIRC, you
> can actually extend it via the MOP, potentially with the help of some
> details of your Common-Lisp implementation).
BTW, I took the term "generalizer" from the following article (from
which I drew a fair bit of inspiration when designing `cl-generic.el`):
Generalizers: New metaobjects for generalized dispatch
http://research.gold.ac.uk/9924/1/els-specializers.pdf
-- Stefan
- Generic functions: Specializers like `or' or `memq'?, Michael Heerdegen, 2021/11/03
- Re: Generic functions: Specializers like `or' or `memq'?, Michael Heerdegen, 2021/11/06
- Re: Generic functions: Specializers like `or' or `memq'?, Stefan Monnier, 2021/11/06
- Re: Generic functions: Specializers like `or' or `memq'?, Michael Heerdegen, 2021/11/06
- Re: Generic functions: Specializers like `or' or `memq'?, Stefan Monnier, 2021/11/21
- Re: Generic functions: Specializers like `or' or `memq'?, Michael Heerdegen, 2021/11/23