3 ms·
ClojureScript can be used on both Node.js and frontend and is able to call any JS library without any effort. I don't understand what you're talking about at al
by klibertp 11y ago
ClojureScript can be used on both Node.js and frontend and is able to call any JS library without any effort. I don't understand what you're talking about at all. It's like saying that Clojure has very few libraries, conveniently forgetting about all of the Java ecosystem which Clojure integrates with seamlessly...
- Scarbutt 11y agoyeah and half of your code and of your time will be writing interop code in non-idiomatic clojure, unless of course you devote even more time and write a clojure wrapper to use the js or java lib in an idiomatic manner.
- klibertp 11y ago> yeah and half of your code and of your time will be writing interop code in non-idiomatic clojure I fail to see any problem with this. Writing non-idiomatic code does not mean that it's going to take more time. There's certainly a value in writing idiomatic code in a given language, but "practicality beats purity", at least in my mind.
- swannodette 11y agoWrapping Java and JavaScript libraries is not idiomatic Clojure(Script), this is the whole point of having good interop.