This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-11
Channels
- # aws (2)
- # beginners (38)
- # boot (21)
- # boot-dev (8)
- # cider (51)
- # cljsrn (3)
- # clojars (23)
- # clojure (99)
- # clojure-austin (7)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-dusseldorf (1)
- # clojure-estonia (20)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-russia (1)
- # clojure-spec (28)
- # clojure-uk (47)
- # clojurescript (47)
- # core-logic (3)
- # cursive (9)
- # data-science (1)
- # datomic (50)
- # docs (12)
- # emacs (5)
- # fulcro (60)
- # graphql (33)
- # hoplon (8)
- # jobs-discuss (1)
- # keechma (31)
- # lein-figwheel (10)
- # leiningen (4)
- # off-topic (70)
- # om (1)
- # onyx (15)
- # pedestal (5)
- # re-frame (185)
- # reagent (14)
- # remote-jobs (8)
- # ring-swagger (7)
- # rum (17)
- # shadow-cljs (193)
- # specter (6)
- # sql (51)
- # unrepl (8)
I actually discovered that while writing the spec last year :)
I asked Rich and Stu about it and the idea was that if you have a big meta map it would dominate the defn so you could stick it at the end
I did actually find a couple of examples because I didn’t have it in the spec and it failed, but I don’t remember where they were
Yeah, when I wrote the grammars for Cursive I saw that, and I couldn’t find a good explanation for it at the time.
Also noticed that, I would be interested to know if there are examples in the wild. Perhaps I'd use it at the end if I had 2/3 metadata keys (not booleans) and having them before the name of the function makes the whole defn confusing.
Ops, what @alexmiller already said 🙂 So there are 3 places that will merge into the same var meta: (meta (defn ^{:t1 1} foo "docstring" {:t2 2} ([a b]) {:t3 3}))