code-reviews

samueldev 2017-04-09T21:03:49.820292Z

Evening folks

samueldev 2017-04-09T21:04:01.820963Z

I'm trying to write my first macro and am a bit confused about the error I'm running into

samueldev 2017-04-09T21:04:16.821792Z

Can't use qualified name as parameter: cxengage-javascript-sdk.macros/args at line 15

samueldev 2017-04-09T21:04:25.822251Z

(defmacro def-sdk-fn [name spec body]
  `(defn ~name
     ([& args]
      (if true
        (e/wrong-number-of-args-error)
        (js/console.info "lawl")))))

samueldev 2017-04-09T21:04:52.823568Z

I want to defn that supports n arguments

samueldev 2017-04-09T21:05:03.824301Z

I know in not-macro-land that's simply done with & binding

samueldev 2017-04-09T21:05:14.824903Z

& rest, & args or w.e