ClojureScript's persistent data structures in vanilla JavaScript
github.com
github.com
Feedback welcome on what people would like to see. I prefer to use the data structures from ClojureScript but I thought it might be interesting to provide them to JavaScript developers. Note it's not a small dependency (~21K gzipped) so I think people are more likely to use them from Node.
The library also provides access to Clojure style reducers as well as Clojure's functional zippers.
I'm open to ideas about making the usage more idiomatic for JavaScript developers - pull requests welcome.
-- more --
ClojureScript is the Clojure language compiler that targets JavaScript. It compiles to Google Closure (not Clojure) JavaScript, but it can also target NodeJS. ClojureScript lets you use Clojure in the browser, adds Clojure data types to the JavaScript language, and allows for JavaScript to interact with the Clojure datatypes. Here's the side by side comparison https://himera.herokuapp.com/synonym.html
One of the most obvious additions to JavaScript is the ability to partition your JavaScript with namespaces.
I did my own research but would like to hear one or two more opinions. Thank you.
One of the most obvious additions to JavaScript is the ability to partition your JavaScript with namespaces.
Features like namespaces, immutability, fast persistent data structures, and, if you are already using JVM Clojure in the same application, the Clojure language. Not to mention, the EDN data transport format, which means you can unify the server-side language, the client-side language, and the data transport format to Clojure (just like what javascript champions talk about with JS, JSON, and NodeJS).