Re: Comparing classes in case statement

2014-02-27 Thread Jan Herich
>From official clojure documentation: "The test-constants are not evaluated. They must be compile-time literals" Dňa štvrtok, 27. februára 2014 14:03:04 UTC+1 Markus Bader napísal(-a): > > Hello, > > if I am not too dumb, it seems that comparing for classes does not work in > case statements, li

Comparing classes in case statement

2014-02-27 Thread Markus Bader
Hello, if I am not too dumb, it seems that comparing for classes does not work in case statements, like: => (class '(1 2 3)) clojure.lang.PersistentList => (case (class '(1 2 3)) clojure.lang.PersistentList :amazing :so-sad) :so-sad I do not need a workaround - that is already