2 ms·
I don’t know. Having used both, JS to CLJS was a much easier transition for me than JS to Reason. CLJS makes mutation pretty trivial if the thing you’re operati
by christophilus 7y ago
I don’t know. Having used both, JS to CLJS was a much easier transition for me than JS to Reason. CLJS makes mutation pretty trivial if the thing you’re operating on is a JS object.
- fulafel 7y agoThere are built in mutable data structures now too: https://clojuredocs.org/clojure.core/transient https://clojuredocs.org/clojure.core/transient Though their usage in public interfaces is not idiomatic Clojure and they come closely coupled with functions to transform them back to immutable values. You can look up eg TransientArrayMap in ClojureScript internals to see how it's implemented on that side: https://github.com/clojure/clojurescript/blob/799d62fe3bba999287558538ca6b61501de02d49/src/main/cljs/cljs/core.cljs#L7052 https://github.com/clojure/clojurescript/blob/799d62fe3bba99...