This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-20
Channels
- # beginners (43)
- # boot (44)
- # chestnut (17)
- # cider (78)
- # cljs-dev (24)
- # cljsrn (16)
- # clojure (84)
- # clojure-dusseldorf (1)
- # clojure-italy (21)
- # clojure-losangeles (2)
- # clojure-russia (140)
- # clojure-sg (2)
- # clojure-spec (8)
- # clojure-uk (16)
- # clojurescript (23)
- # cursive (7)
- # datascript (1)
- # datomic (18)
- # docker (20)
- # ethereum (1)
- # fulcro (16)
- # garden (4)
- # graphql (27)
- # hoplon (9)
- # jobs (4)
- # luminus (34)
- # off-topic (6)
- # om (4)
- # onyx (35)
- # pedestal (3)
- # re-frame (24)
- # ring-swagger (15)
- # rum (6)
- # shadow-cljs (22)
- # spacemacs (8)
- # specter (22)
- # yada (7)
Is the JVM opt to disable spec asserts still -Dclojure.spec.compile-asserts=false
or did this change with clojure.spec.alpha
?
I believe in both cases we did not put alpha in the property name, but you can check the source
Hi, let's say I have a function that takes a nested map and adds a new key somewhere deep.
(defn add-bar
[m]
(assoc-in m [:model/foo :model/bar] 42))
Given the spec for the input argument (and its :model/foo
key), what's the best practice to spec out the the return value with :model/bar
as required key for :model/foo
?