#GenericFunction

2023-04-13

@natty Because it's completely unnecessary in proper #Object systems like #CLOS.

That is to say, #multimethod / #GenericFunction based object systems.

Jörg Preisendörferjpreisendoerfer
2023-01-05

@phoe

Note that the dispatch tables of conceptionally are a with .

The function SET-PPRINT-DISPATCH is essentially an ADD-METHOD to the pretty printing parametric dispatch.

(Unfortunatly, the canonical, implementation of PP by is one single convoluted mess; basically a negative example of software design, even by standards of its time.)

🌺

🏷️

Jörg Preisendörferjpreisendoerfer@libranet.de
2022-12-28
@thatgeoguy The #PrettyPrint dispatch table of #CommonLisp is conceptually a #GenericFunction with parametric dispatch, altough not formalized as such and not a formal part of the Common Lisp Object System (CLOS).

However, it is possibly to extend #CLOS for #ParametricDispatch using the #MetaObjectProtocol (#MOP).

The Metaobject Protocol is not part of the formal CL standard, but is respected as de-facto standard, since about every CL implementation will stick to it. The protocol is described in The Art of the Meta-Object Protocol by Gregor Kiczales, Jim des Rivieres and Daniel G. Bobrow.

🌺

🦎 https://t.me/FamilyOfLisp

🏷️ #Lisp #Scheme

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst