I just saw an article recently about core.async and the "go" macro, which seems to effectively give you goroutines in Clojure. I'd be very tempted to use it for that reason alone. I love Go's concurrency, but it can be a little on the verbose side. Good for some projects, but not all of them.
Clojure will affect the way you think about programming
11–20 of 226 posts
Re: Clojure will affect the way you think about programming
#12Re: Clojure will affect the way you think about programming
#13Re: Clojure will affect the way you think about programming
#14I 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.
When you say it works across Java/JavaScript - could you expand? Can I essentially write Clojure that compiles to JavaScript?
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
#15Re: Clojure will affect the way you think about programming
#16If this would be common practise nobody would learn golang.
Re: Clojure will affect the way you think about programming
#17Re: Clojure will affect the way you think about programming
#18The perfect language? I doubt that. It's probably quite decent.
The perfect language to expand your brain. In a world dominated by java, php, c++,... In my opinion yes, Clojure could the perfect language to continue learning concepts, at same level would be Haskell.
Re: Clojure will affect the way you think about programming
#19The perfect language? I doubt that. It's probably quite decent.
Re: Clojure will affect the way you think about programming
#20Just put enough effort to get beyond that "omg parenthesis" barrier and it will be a delight. It's like that Half-life joke: there are two kinds of people, those that finished Half-life many times and those that never got off the train (which as somebody will probably point out, is a variation on another joke, but you get the idea).
totally unaffiliated: https://www.braveclojure.com/clojure-for-the-brave-and-true/