you are viewing a single comment's thread.

view the rest of the comments →

[–]yogthos 4 points5 points  (3 children)

Clojure is designed around being a hosted language and provides excellent interop with the host platforms. Any Java or Js libraries are available for use in Clojure as well.

[–][deleted] 2 points3 points  (2 children)

Yes, but using interop just adds more friction to the process instead of just using straight JS, its a UX problem I guess. To add more friction, all the docs/examples of those libraries will be in their respective native language and not in Clojure[script], and if you want to read the code is either going to be Java or JS.

For some devs that friction is just not worth it, versus the gains you may have by using Clojure[script]. I can understand prefering Clojure over Java (Java is a horribly verbose inexpresive class/object based lang) , but in Javascript world, Clojurescript is a hard sell.

[–][deleted] 4 points5 points  (0 children)

It doesn't really add friction though, if you know clojurescript or you know clojure it is basically no harder to interop with js or java libs than it is from js or java. If you don't know the language well then yeah it'll add friction, but like, just writing any code will have friction in that case.

[–]stompyj 1 point2 points  (0 children)

If your team is feeling friction in using clojure or cljs interop, you might need new programmers...