From: Peter Seibel
Subject: Trivial CLOS style question
Date: 
Message-ID: <m3ptsq8azn.fsf@localhost.localdomain>
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
From: Tim Bradshaw
Subject: Re: Trivial CLOS style question
Date: 
Message-ID: <ey3znrunnfu.fsf@cley.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