[alexandria-devel] switch
Nikodemus Siivola
nikodemus at random-state.net
Thu Aug 2 07:47:30 UTC 2007
On 7/31/07, Attila Lendvai <attila.lendvai at gmail.com> wrote:
> > > (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.
T and OTHERWISE are both fine with me, I think.
Cheers,
-- Nikodemus
More information about the alexandria-devel
mailing list