Details
-
Type:
Enhancement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
In Clojure the form (= #"a" #"a") returns true. In ClojureScript
the formt returns false, which is the same behaviour as in
JavaScript.
What is the supposed behaviour in ClojureScript, true or false?
The Clojure behaviour could be implemented like this:
(extend-type js/RegExp
IEquiv
(-equiv [o other]
(-equiv (str o) (str other))))
Fixed, https://github.com/clojure/clojurescript/commit/e35c3a57472fa62ae41591418a73794dc8ac6dde