Re: In cljs a/go expands into clojure.core.async/go instead of cljs.core.async.macros/go

2017-10-27 Thread Lubomir Konstantinov
Smoke and mirrors :) Check out core.cljc in clojurescript - import-macros and stuff. Anyways, if you feel like its a bug - its fine by me - I am not here to argue. On Friday, 27 October 2017 17:53:28 UTC+3, Vitalie Spinu wrote: > > > >> On Fri, Oct 27 2017 04:11, Lubomir Konstantinov wrote: >

Re: In cljs a/go expands into clojure.core.async/go instead of cljs.core.async.macros/go

2017-10-27 Thread Vitalie Spinu
>> On Fri, Oct 27 2017 04:11, Lubomir Konstantinov wrote: > Here is what I do in a case close to yours: > (defn- cljs-env? [...] > (let [is (if (cljs-env? &env) 'cljs.test/is 'clojure.test/is)] [...] This just cannot be right. If every developer would need to recur to such tricks in order to

Re: In cljs a/go expands into clojure.core.async/go instead of cljs.core.async.macros/go

2017-10-27 Thread Lubomir Konstantinov
Cause its all a sham, my dear pumpkin ;) https://clojurescript.org/about/differences#_macros AFAIK, the macros are actually compiled as Clojure, so the conditional readers don't do what you think they do. Here is what I do in a case close to yours: (defn- cljs-env? "Take the &env from a mac

In cljs a/go expands into clojure.core.async/go instead of cljs.core.async.macros/go

2017-10-26 Thread Vitalie Spinu
Hi, I am having hard time writing a macro in cljc which uses core.async/go macro. Minimal project that illustrates the problem is here . In a nutshell: core.clj: (ns cljproj.core (:require #?(:clj [clojure.core.async :refer