This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-25
Channels
- # aws (2)
- # aws-lambda (2)
- # beginners (95)
- # boot (47)
- # cider (13)
- # clara (5)
- # cljs-dev (36)
- # cljsjs (9)
- # clojure (51)
- # clojure-austin (1)
- # clojure-greece (25)
- # clojure-italy (4)
- # clojure-japan (10)
- # clojure-russia (13)
- # clojure-spec (61)
- # clojure-uk (25)
- # clojurescript (26)
- # core-matrix (5)
- # cursive (8)
- # data-science (7)
- # datomic (43)
- # dirac (2)
- # emacs (8)
- # events (3)
- # fulcro (17)
- # graphql (29)
- # jobs-rus (4)
- # lambdaisland (4)
- # lein-figwheel (3)
- # leiningen (60)
- # luminus (15)
- # lumo (8)
- # mount (3)
- # off-topic (28)
- # om (22)
- # onyx (115)
- # other-languages (6)
- # pedestal (5)
- # re-frame (41)
- # reagent (12)
- # ring-swagger (12)
- # shadow-cljs (127)
- # unrepl (27)
- # yada (5)
Does anyone know of a JS->CLJS converter that’s reliable? Looking to port a D3 example to CLJS and would prefer to not do it by hand because I may try many examples
Also, does anyone have any alternatives to the Clojure standard docs? I’m looking for something with more descriptions about the arguments that a function accepts
@wpcarro While Clojure-specific, I’ve found https://clojuredocs.org helpful when attempting to grok a fn.
has anyone used warning-handlers
with lein-cljsbuild and 1.9?
i’m getting errors using it. cannot find the symbol if i give it a function in a namespace. if i give it just an anon function, i get “no reader tag for function”
Is there a common mistake that causes a SyntaxError: missing name after . operator
error?
changing
(aget (.. js/document (getElementById "file") .-files) 0)
to
(aget (.-files (.getElementById js/document "file")) 0)
did it, but isnt the first one correct syntax, too?Ah jeez, thanks!
@timrichardt I prefer ->
, over ..
, it's usually clearer
anywhere there is javascript, there can be clojurescript. looks like js frameworks for smartv exist, so it should be possible.
@pesterhazy I agree, this was written in a hurry. Now I have it like this
(-> js/document
(.getElementById "file")
.-files
(aget 0))
@timrichardt I think the problem is using .-files
instead of -files
with .. the . is implied
@noisesmith problem was already spotted by @sundarj, but thx
oh, right, now I see that