ClojureScript

:arglists inconsistency in cljs

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.908
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    n/a

Description

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)

Activity

Hide
David Goldfarb added a comment -

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

Show
David Goldfarb added a comment - Looks like this is a duplicate of https://dev.clojure.org/jira/browse/CLJS-2351

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: