[CLJS-376] `case` doesn't match quoted symbols Created: 07/Sep/12 Updated: 27/Jul/13 Resolved: 07/Sep/12
It works fine in the Clojure 1.4.0 REPL:
But in the CLJS Rhino REPL this is what I see:
|Comment by David Nolen [ 07/Sep/12 4:48 PM ]|
This did reveal a bug though the ticket description does have a user error. The tests for case can only be literals - you should not quote the test values. For example the following is how symbols should be tested:
The above code that quotes the test is actually equivalent to:
Which happens to work but probably isn't intended.
With the coming patch CLJS now works as Clojure.
|Comment by David Nolen [ 07/Sep/12 4:49 PM ]|