Yes, dynamic vars do not exist in CLJS, so naturally binding doesn't work
as you would expect.
On Thu, Mar 16, 2017 at 11:36 AM, Christian Weilbach <
whitesp...@polyc0l0r.net> wrote:
> You cannot do so in cljs though:
> http://dev.clojure.org/jira/browse/CLJS-1634
>
> Just in case you expect to
You cannot do so in cljs though:
http://dev.clojure.org/jira/browse/CLJS-1634
Just in case you expect to write cross-platform code with dynamic bindings.
Am 16.03.2017 um 01:01 schrieb Timothy Baldridge:
> Yes, that should work fine, do your tests confirm otherwise? Also if
> you're not doing a
Yes, that should work fine, do your tests confirm otherwise? Also if you're
not doing a recur there's no reason to use `go-loop` you can just use `go`.
On Wed, Mar 15, 2017 at 4:44 PM, Eran Levi wrote:
> Hi,
> can I bind variables, same as I do for threads, for go routines,
Hi,
can I bind variables, same as I do for threads, for go routines, to be
local only for a particular go routine, and if I can't, how would you mimic
this behavior ?
(defn print-stuff [s]
(println s))
(go-loop []
(binding [*out* (clojure.java.io/writer "foo.txt")]
(print-stuff)))