4 ms·
"you can change the fundamental data structure and the algo still works" - it doesn't really pan out, and it's not important in my experience of using Clojure f
by raspasov 6y ago
"you can change the fundamental data structure and the algo still works" - it doesn't really pan out, and it's not important in my experience of using Clojure for about ~8 years.
What makes Clojure worth it is the pervasive reduction of mutable state across your program without the cost and rigidity of creating types everywhere. Also great sharing of code across Clojure and ClojureScript:
- You want your dates to behave the same on client and server? You got it: https://github.com/juxt/tick https://github.com/juxt/tick
- You want your logging/debugging code to be the same? You got it: https://github.com/ptaoussanis/timbre https://github.com/ptaoussanis/timbre
- You want good async primitives? No problem: https://github.com/clojure/core.async https://github.com/clojure/core.async
- And many more...
I haven't seen another language that is as good as Clojure(Script) at this. Nowadays .cljc (.clj + .cljs) files really rock.