[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: common-lisp-object-system@SAIL.STANFORD.EDU
- Subject: defmethod-setf
- From: Gregor.pa@Xerox.COM
- Date: Tue, 12 Jan 88 19:16 PST
- Fcc: BD:>Gregor>mail>outgoing-mail-1.text
- Line-fold: no
A while ago, we developed a proposal for real setf functions and a
simple rule for when setf should expand into a call to them. That
proposal was well received by the cleanup committee. Given that
proposal, people can program like this:
(defun foo (x) (gethash x *foo*))
(defun (foo setf) (nv x) (setf (gethash x *foo*) nv))
Which is great.
I think we should get rid of defmethod-setf and defgeneric-setf. I
think they are just superfluous and confusing.