3 ms·
The official Clojure (JVM) project has an official sister project: ClojureScript, which is designed to be compiled to JavaScript (and maybe Webassembly in the f
by vaylian 4y ago
The official Clojure (JVM) project has an official sister project: ClojureScript, which is designed to be compiled to JavaScript (and maybe Webassembly in the future?). There is a lot of code that runs with both languages and therefore I don't think you should worry too much about using Jank with existing Clojure/ClojureScript libraries.
- mjul 4y agoClojure is a language without a platform so all the Clojure dialects have the different semantics of the underlying platform, be it the JVM or JavaScript. For example ClojureScript has all the “wat” semantics from JavaScript primitive types. You can build libraries that try to hide the differences but the leaky abstraction is inherently still there.
- JonChesterfield 4y agoI didn't realise clojurescript did that, though clojure certainly threw JVM stack traces at me. That seems a shame - a language implementation is an abstraction that doesn't have to leak, the layer below can be totally inaccessible if desired.