This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-18
Channels
- # aleph (4)
- # announcements (2)
- # babashka (48)
- # beginners (59)
- # calva (5)
- # cider (14)
- # clj-kondo (4)
- # cljs-dev (3)
- # clojure (77)
- # clojure-europe (6)
- # clojure-italy (6)
- # clojure-nl (5)
- # clojure-spec (4)
- # clojure-uk (67)
- # clojurescript (19)
- # clr (3)
- # cursive (7)
- # datomic (36)
- # duct (33)
- # events (3)
- # figwheel (1)
- # fulcro (4)
- # funcool (2)
- # graalvm (3)
- # jobs (1)
- # joker (25)
- # kaocha (1)
- # leiningen (45)
- # malli (17)
- # off-topic (103)
- # quil (1)
- # re-frame (16)
- # reitit (1)
- # rewrite-clj (27)
- # shadow-cljs (39)
- # spacemacs (3)
- # sql (11)
- # tools-deps (14)
- # vim (41)
@alexmiller thanks!
I’ve used with-redefs
around an st/check
in ClojureScript code and it has worked fine, but trying in Clojure code it doesn’t. I had to redefine a my-function-with-redefs
and spec that with the redefs inside the body. Is that expected? I’m assuming it’s something to do with multiple threads vs single thread in JS
might be - st/check uses pmap which is multi-threaded in Clojure (or possibly it's really the laziness of pmap)
make sure you realize the result of pmap with doall or something inside the lexical scope of the with-redefs