On 7/31/07, Attila Lendvai attila.lendvai@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