4 ms·
In Common Lisp, methods are the bits of code which specialize a generic function. defgeneric most certainly defines a function. The symbol becomes fbound and c
by kazinator 6y ago
In Common Lisp, methods are the bits of code which specialize a generic function.
defgeneric most certainly defines a function. The symbol becomes fbound and can be used like function: (mapcar #'mygeneric ....) and so on.
defmethod defines specializations for it. If you write a defmethod without a matching defgeneric, then the generic function gets implicitly defined.