Give a generic method:
(defgeneric bar (x))
upon which I want to define a method to be invoked when x is nil, I
assume that either of the following two methods will do. If so, is one
or the other considered better style:
(defmethod bar ((x null)) ...)
(defmethod bar ((x (eql nil))) ...)
-Peter
--
Peter Seibel
·····@javamonkey.com
* Peter Seibel wrote:
> Give a generic method:
> (defgeneric bar (x))
> upon which I want to define a method to be invoked when x is nil, I
> assume that either of the following two methods will do. If so, is one
> or the other considered better style:
> (defmethod bar ((x null)) ...)
This one.
--tim