This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-08
Channels
- # aleph (4)
- # beginners (34)
- # boot (37)
- # cljs-dev (5)
- # cljsrn (8)
- # clojure (31)
- # clojure-austin (3)
- # clojure-greece (4)
- # clojure-spec (11)
- # clojure-uk (1)
- # clojurebridge (2)
- # clojurescript (13)
- # cloverage (22)
- # cursive (9)
- # datascript (2)
- # defnpodcast (2)
- # devcards (12)
- # emacs (1)
- # hoplon (67)
- # off-topic (5)
- # om (3)
- # onyx (36)
- # planck (3)
- # quil (2)
- # testing (1)
- # untangled (4)
- # yada (168)
how can i print in a macro that is used from cljs without it being emitted as javascript?
@dzannotti @olivergeorge Thanks both.
Start the repl cider-jack-in-clojurescript
The default repl (the clojure) one can’t evaluate Clojurescript (well it probably could but its the wrong target).
Is such a function declaration illegal in clojurescript?
(defn foo
([x]
(foo x :y 10))
([x & {:keys [y]}]
(+ x y)))
My nodejs repl complains that "Cannot read property 'call' of undefined at Function.some.ns.foo.cljs$core$IFn$_invoke$arity$variadic".No, it works fine in my ClojureScript REPL.
@henriklundahl alright, i'll investigate further, thanks!
@darwin thanks, i even knew about System.out.println from java but for w/e reason i forgot i could use it