[hunchentoot-devel] asterisk
    Leslie P. Polzer 
    sky at viridian-project.de
       
    Thu May 21 15:18:56 UTC 2009
    
    
  
Dmitri Hrapof wrote:
> why not
> instead of REQUEST-URI*
>
> use something like:
>
> (defclass request ()
>  ((uri)))
> (defgeneric request-uri (&optional req))
> (defmethod request-uri (&optional (req request))
>  (when (null req) ...
>
> though maybe sacrificing backwards-compatibility
> is better than writing all that :)
You would seriously subvert the essential meaning of methods,
i.e. being able to dispatch on their arguments.
How would you be able to support a custom subclass of
REQUEST wishing to specialize REQUEST-URI (and all
the other functions) then?
  Leslie
-- 
http://www.linkedin.com/in/polzer
    
    
More information about the Tbnl-devel
mailing list