Fork me on GitHub
#clojurescript
<
2017-10-25
>
wpcarro01:10:50

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

wpcarro01:10:22

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

mfikes02:10:15

@wpcarro While Clojure-specific, I’ve found https://clojuredocs.org helpful when attempting to grok a fn.

wpcarro02:10:51

thanks for sharing, @mfikes

chrisetheridge10:10:44

has anyone used warning-handlers with lein-cljsbuild and 1.9?

chrisetheridge10:10:07

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”

Jon15:10:44

when you visit ClojureScript site from China

timrichardt15:10:34

Is there a common mistake that causes a SyntaxError: missing name after . operator error?

timrichardt16:10:55

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?

sundarj16:10:08

-files, not .-files in the first one

timrichardt16:10:29

Ah jeez, thanks!

pesterhazy17:10:23

@timrichardt I prefer ->, over .., it's usually clearer

fabrao20:10:32

Hello all, is there any way to develop smartv app with clojurescript?

ajs20:10:46

anywhere there is javascript, there can be clojurescript. looks like js frameworks for smartv exist, so it should be possible.

fabrao20:10:05

I saw that the application is made with html and js, so ...

ajs20:10:25

so, why not

fabrao20:10:41

but is there any ready to use lib for it? I did not see in github

fabrao20:10:09

like in Electron

ajs20:10:34

i haven't seen one; when you write one, you can share it with us 🙂

timrichardt20:10:38

@pesterhazy I agree, this was written in a hurry. Now I have it like this

(-> js/document
    (.getElementById "file")
    .-files
    (aget 0))

noisesmith20:10:48

@timrichardt I think the problem is using .-files instead of -files

noisesmith20:10:17

with .. the . is implied

timrichardt20:10:22

@noisesmith problem was already spotted by @sundarj, but thx

noisesmith20:10:34

oh, right, now I see that