9 Jun
2008
9 Jun
'08
2:37 a.m.
"Nikodemus Siivola" <nikodemus@random-state.net> writes:
As for the fallthrough/multiple keys issue: something like this can be done:
(switch (foo :test (lambda (x y) (member x y :test #'equal))) ('("foo" "bar") ...) (...))
but it is ugly as hell. Not sure about what to do.
ARNESI:SWITCH is more CASE-like in that it doesn't evaluate its clauses and accepts an otherwise-clause. FWIW, I've used this macro once or twice and found arnesi's behaviour more useful. -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/