Re: case bug

2018-07-24 Thread Michael Gardner
As its docstring states, the `case` macro doesn't evaluate its test-constants. It only works on compile-time constants (e.g. literal strings/numbers), to allow O(1) matching. You want `condp` instead. -- You received this message because you are subscribed to the Google Groups "Clojure" group.

case bug

2018-07-24 Thread 冯忠孝
(def rechargecardflowname "rechargecard") (def rechargedirectflowname "rechargedirect") (def procurementstockflowname "procurementstock") (defn abolish-name [flowname] (str "abolish1" flowname) ) (defn report-rechargecard [billid] ) (defn consume-msg [msgname billid] (case msgname re