[alexandria-devel] switch

Luís Oliveira luismbo at gmail.com
Tue Jul 31 20:48:03 UTC 2007


On 31/07/07, Attila Lendvai <attila.lendvai at gmail.com> wrote:
> in the process i was thinking that removing the :default key arg and
> testing for a 'cl:otherwise clause would be much more cl-ish, but that
> would mean an incompatible change.
>
> (switch ("xxx" :test #'string=)
>   ("alma" 1)
>   ("korte" 2)
>   (otherwise 42))

Looks much better than the :default argument, IMHO. Could it also
accept T as a synonym for OTHERWISE?

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/



More information about the alexandria-devel mailing list