Re:Clojure will affect the way you think about programming
by hsx on Friday August 04, 2017 @09:47AM
(#14928593)
When you say it works across Java/JavaScript - could you expand? Can I essentially write Clojure that compiles to JavaScript?
[ Parent
| on HN ]
Re:Clojure will affect the way you think about programming
by yogthos on Friday August 04, 2017 @09:55AM
(#14928646)
Clojure uses 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_ht...
Re:Clojure will affect the way you think about programming
by sp0ck on Friday August 04, 2017 @09:49AM
(#14928603)
Short answer - yes. https://clojurescript.org/
Re:Clojure will affect the way you think about programming
by lostcolony on Friday August 04, 2017 @09:48AM
(#14928599)