In Which Cases Is Better To Use Clojure?

Viewed 6312

I develop in Lisp and in Scheme, but I was reading about Clojure and then I want to know, in which cases is better to use it than using Lisp or Scheme? Thanks

12 Answers

As a general rule of thumb, I tend to favor Clojure over other languages in cases where either of these fit the bill: (1). The domain model tends to look very recursive and/or graph-like. (2). There's an opportunity to leverage a multi-core JVM environment (e.g., Elastic Beanstalk) (3). There's a fuzzy barrier between data and code (think RPN calculator where nodes can be operators or numbers)

These might sound a bit contrived, but a lot of my work involves dealing with graphs and trees of information, whether it's looking at social networks, some kind of constrained-based optimization, or semantic relationship building. I find that my other favorite language, Ruby, cannot give me the mix of expressiveness and raw computing power compared to Clojure, particularly when it comes to quantitative, recursive, concurrent-type problem solving.

Related