[alexandria-devel] Re: Review cycle 2: SWITCH, ESCWITCH, and CSWITCH

Luis Oliveira luismbo at gmail.com
Mon Jun 9 02:37:49 UTC 2008


"Nikodemus Siivola" <nikodemus at 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/




More information about the alexandria-devel mailing list