[alexandria-devel] switch

Attila Lendvai attila.lendvai at gmail.com
Tue Jul 31 20:42:08 UTC 2007


hi!

i was touching SWITCH and friends to understand #'string= and 'string=
and created a shared expander for the 3 variants.

in the process i was thinking that removing the :default key arg and
testing for a 'cl:otherwise clause would be much more cl-ish, but that
would mean an incompatible change.

(switch ("xxx" :test #'string=)
  ("alma" 1)
  ("korte" 2)
  (otherwise 42))

opposed to

(switch ("xxx" :test #'string= :default 42)
  ("alma" 1)
  ("korte" 2))

what do people thing about it?

-- 
 attila



More information about the alexandria-devel mailing list