5 ms·
I have switched between many programming languages, and if you are considering Clojure I would highly recommend it. It is immutable first, which helps eliminat
by sharms 9y ago
I have switched between many programming languages, and if you are considering Clojure I would highly recommend it. It is immutable first, which helps eliminate many classes of explicit bugs and non-obvious anti-patterns. It also works across Java / Javascript allowing for a common code base of business logic across all layers, and with React Native looks and performs well on iOS and Android.
- hsx 9y agoWhen you say it works across Java/JavaScript - could you expand? Can I essentially write Clojure that compiles to JavaScript?
- lostcolony 9y agohttps://clojurescript.org/ https://clojurescript.org/
- praptak 9y agoYes, that's ClojureScript.
- sp0ck 9y agoShort answer - yes. https://clojurescript.org/ https://clojurescript.org/
- deleted 9y ago[deleted]
- yogthos 9y agoClojure uses reader conditionals https://clojure.org/guides/reader_conditionals https://clojure.org/guides/reader_conditionals that allow writing code that cross-compiles between different platforms, and generates platform specific code when necessary. Many Clojure libraries cross-compile between Clojure and ClojureScript. You can see an example here https://github.com/yogthos/json-html/blob/master/src/json_html/core.cljc https://github.com/yogthos/json-html/blob/master/src/json_ht...