Having just come across the
await function of
clojure.core—which (correct me if I’m wrong) is not useable from ClojureScript—I began to wonder if there is a number of such functions.
My question to y’all is: don’t you think that such functions should be excluded from ClojureScript?
Yes, there are a number of things in
clojure.core that aren’t available in
cljs.core and thus not usable in CLJS. Most are platform related things that simply aren’t available in JS, or simply not possible (eg. no blocking IO, no
They already are? what do you mean?
Well I found out about
clojure.core/await because I was creating a macro of the same name, and there was a build warning to the effect that I am redefining something in
await is “available” in CLJS… pardon me if I’m not making sense; I’ve had a few beers.
:refer-clojure :exclude (await) in the macro ns form, to get rid of the warning.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.