Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is clojure not good for?


Asked by Waverly Hill on Nov 30, 2021 FAQ



Clojure is not good for: - Real time application development, due to the JVM being soft-real time. For example it can't be used for high-performance video pc/ console games, but it could be used...
Indeed,
Clojure is a good choice whenever someone needs to write software that cannot afford to have bugs or defects. Probably the good example would be medical, or financial software. Having defects creep in to such types of programs is most likely disastrous, either for human health, or for human financial well being.
Consequently, The creator of the language Rich Hickey has a very pragmatic and strategic reason for writing Clojure on JVM. As it was written on JVM, Clojure gives access to all available Java ( or any JVM language) libraries and their frameworks. So you can call Java code from Clojure code, or vice versa.
Next,
Pure functional languages tend to strongly static types Not for everyone, or every task Clojure is a functional language with a dynamic emphasis All data structures immutable & persistent, supporting recursion Heterogeneous collections, return types VMs, not OSes, are the platforms of the future, providing:
In respect to this,
If it looks/feels better in Groovy, go with Groovy. They're both radically different languages, and they both have their purposes. You can use Clojure anywhere you would use Groovy or java. Why would you want to do that ? Some people like lisp.