Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by
ClojureScript does not seem to fully support setting :arglists meta-data to a function. In particular, it seems to fail when the real parameter list contains an '&'.

In Clojure,

(:arglists (meta (defn f {:arglists '([x])} [& a] a)))

returns ([x]). But, in ClojureScript, it returns ([& a])

Note that simpler forms do work correctly:

(:arglists (meta (defn f {:arglists '([x])} [a] a)))

returns ([x]) in both environments.

(Tested in in ClojureScript 1.9.908 and Clojure 1.9.0-alpha17)

2 Answers

0 votes
by

Comment made by: deg

Looks like this is a duplicate of https://dev.clojure.org/jira/browse/CLJS-2351

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2366 (reported by alex+import)
...