This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-01
Channels
- # beginners (41)
- # boot (25)
- # cider (34)
- # cljs-dev (221)
- # cljsrn (1)
- # clojure (191)
- # clojure-dusseldorf (4)
- # clojure-hamburg (1)
- # clojure-italy (8)
- # clojure-poland (1)
- # clojure-russia (22)
- # clojure-spec (27)
- # clojure-uk (91)
- # clojurescript (101)
- # core-async (11)
- # cursive (33)
- # data-science (9)
- # datascript (3)
- # datomic (30)
- # emacs (4)
- # events (4)
- # garden (6)
- # jobs (3)
- # leiningen (8)
- # luminus (39)
- # lumo (2)
- # off-topic (158)
- # om (13)
- # onyx (1)
- # parinfer (22)
- # planck (2)
- # protorepl (5)
- # re-frame (7)
- # reagent (10)
- # remote-jobs (1)
- # ring (1)
- # ring-swagger (20)
- # unrepl (92)
- # vim (11)
In cljs, The outer binding
has no affect for go’s body, it’s no like clojure:
clojurescript
(def ^:dynamic *foo* 3)
(binding [*foo* 42] (go (println *foo*)))
;;=> will print 3 instead of 42
bindings are pretty much a hack in CLJS
there's no global var registry, and so there's now way to grab vars and save them off during a call to async/go
@isaac so yes it's a known issue, probably won't be fixed soon.
how do you do that?
as in what are the mechanics in play?
And need mark :export
meta for :dynamic
var, prevent uglify for :advanced
compile. then async/go
can dynamic binding according the global registry.
Practical question: I would like to buy the "Communicating Sequential Processes with core.async" course (http://shop.oreilly.com/product/0636920041474.do). I was wondering how I could purchase it without buying a year long Safari subscription or going through the evils of Udemy?