>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, 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 done - and using the List is > just for providing a simple example. It originally occurred while comparing > Java classes. > > I am just interested if this behavior is intended or a bug. > > Cheers! > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.