4 ms·
Nowhere near as good or as seamless as Kotlin interop, Kotlin made interop a priority/first class feature. When using a Java library in Clojure, many times its
by Scarbutt 7y ago
Nowhere near as good or as seamless as Kotlin interop, Kotlin made interop a priority/first class feature.
When using a Java library in Clojure, many times its just better to just write some Java for your Clojure program specifically for the purpose of calling it from Clojure.
- didibus 7y agoThat hasn't been my experience. I've always been able to make use of Java libraries directly from Clojure in a straightforward way. In fact, sometimes I joke it's easier to do Java in Clojure than in Java Can you describe the kind of situations that you faced issues in? P.S.: Also, Clojure has first class interop... It's a part of its fudamental design.
- Scarbutt 7y agoFrom Cursive's author https://old.reddit.com/r/Clojure/comments/5twabp/new_clojurians_ask_anything/ddq55z4/ https://old.reddit.com/r/Clojure/comments/5twabp/new_clojuri...
- trmsw 7y agoIn what sort of situations have you needed to write more Java to use a Java library from Clojure? I've never felt the need to do this. It's sometimes helpful to write a Clojure wrapper for a Java library on order to use it in a more Clojure-y way.
- Scarbutt 7y agoFrom Cursive's author https://old.reddit.com/r/Clojure/comments/5twabp/new_clojurians_ask_anything/ddq55z4/ https://old.reddit.com/r/Clojure/comments/5twabp/new_clojuri...
- mateuszf 7y ago> When using a Java library in Clojure, many times its just better to just write some Java for your Clojure program specifically for the purpose of calling it from Clojure. What? Calling Java from Clojure couldn't be any easier. The same as calling JavasScript from ClojureScript
- Scarbutt 7y agoFrom Cursive's author https://old.reddit.com/r/Clojure/comments/5twabp/new_clojurians_ask_anything/ddq55z4/ https://old.reddit.com/r/Clojure/comments/5twabp/new_clojuri...
- mateuszf 7y agoOk, that's fair enough, though one could argue this is about writing new java like code not accessing existing java code.