Ryan Davis <r...@acceleration.net> writes:

> The answer we arrived at was "yes":
>
>     (defun send-email (to from subject body)
>       (let ((to (etypecase to
>                   (string to)
>                   ((integer 0) (email (fetch-client to)))
>                   (client (email to))
>                   )))
>         ;; ... more code
>         ))
>
> The "to" parameter can be anythings that can be mapped to an email
> address. 

Yes, it's what's usually called a "designator", specifically, an email
designator.  CL itself defines and uses a few designator types (string
designators, package designators, pathname designators, list
designators, etc).

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.

_______________________________________________
pro mailing list
pro@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/pro

Reply via email to