[alexandria-devel] switch

Attila Lendvai attila.lendvai at gmail.com
Tue Jul 31 21:03:22 UTC 2007


> > (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?

hm, i was thinking why :default was born and i thought that because
specially handling T is somehow confusing or makes some situations
impossible to handle. but after giving a few more thoughts i think T
could also be used just like with COND and CASE.

-- 
 attila



More information about the alexandria-devel mailing list