Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Declined
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Pretty much the same issue I described here http://dev.clojure.org/jira/browse/CLJ-1024 but for ClojureScript rather than for Clojure. After the following declaration:
(extend-protocol IFn js/Array (-invoke ([& args] args)))
Calling ((array) 1 2 3) will return 1 rather than (1 2 3).
That is not how you extend to array nor are rest args supported on protocol implementations. I'm inclined to decline this ticket if I don't have more information.