This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-04
Channels
- # aws (1)
- # beginners (163)
- # boot (1)
- # bristol-clojurians (1)
- # cider (7)
- # clara (1)
- # cljs-dev (22)
- # cljsjs (1)
- # clojure (43)
- # clojure-denver (1)
- # clojure-finland (6)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-russia (1)
- # clojure-spec (1)
- # clojure-uk (6)
- # clojurescript (107)
- # cursive (4)
- # data-science (2)
- # datascript (2)
- # datomic (19)
- # duct (31)
- # emacs (1)
- # fulcro (50)
- # graphql (15)
- # hoplon (3)
- # lein-figwheel (2)
- # luminus (21)
- # off-topic (74)
- # onyx (3)
- # parinfer (15)
- # portkey (2)
- # precept (9)
- # proton (1)
- # re-frame (130)
- # reagent (73)
- # reitit (7)
- # ring-swagger (5)
- # shadow-cljs (61)
- # spacemacs (18)
- # specter (12)
- # uncomplicate (1)
- # vim (88)
- # yada (2)
the macro in question is
(defmacro def-specs
{:style/indent 0}
[& key-spec-pairs]
(if (-> key-spec-pairs count even? not)
`(throw (IllegalArgumentException. "`key-spec-pairs` must be in the form of key def pairs"))
(let [pairs (reverse (partition 2 key-spec-pairs))
defs (map (fn [[k form]] `(spec/def ~k ~form)) pairs)]
`(do ~@defs))))
odd, other forms, like s/cat for example doesn't have this issue
@theeternalpulse Seems you found a clojure-mode
bug. Please, report it on GitHub.
ok great.
Have to find a way to reproduce it, seems to do it with that specific macro, try to make another one and it doesnt behave the same.