3 ms·
> But the names setf synthesises aren’t recognised by defun and defgeneric Oh, they are. (SETF FOO) is a valid function name in Lisp - even though it's a list,
by phoe-krk 2y ago
> But the names setf synthesises aren’t recognised by defun and defgeneric
Oh, they are. (SETF FOO) is a valid function name in Lisp - even though it's a list, not a symbol.
CL-USER> (defun (setf foo) (newval) (format t ";; Setting ~S~%" newval) newval)
(SETF FOO)
CL-USER> (setf (foo) 42)
;; Setting 42
42