4 ms·
Why Clojure instead of Racket (or even Common Lisp)? Is it because of Java interop?
by TheMagicHorsey 11y ago
Why Clojure instead of Racket (or even Common Lisp)?
Is it because of Java interop?
- KingMob 11y agoSometimes it's for Java/Javascript interop or access to the large variety of libs in those languages, but other possible reasons you might pick Clojure instead of another Lisp are: 1. immutable by default 2. strong focus on concurrency/parallelism 3. well-thought-out design of core library (one of the most cohesive I've ever seen) 4. largest single Lisp community (just going by GitHub, Clojure has ~18k repos, CL has 10k, Racket has 5.5k, Scheme has 7.5k) 5. unified syntactic sugar for common data structures like maps/arrays The above are just factors that distinguish it from other Lisp-based languages. If you're coming from Java/C/C++/Ruby/Python/PHP/etc, there's way more reasons than that.
- TeMPOraL 11y agoBesides the excellent reasons 'KingMob provided, I'd add that it's easier to sneak it into a Java project bottom-up. I wonder why Clojure vs. ABCL (Common Lisp on JVM) though.
- retrogradeorbit 11y agoFor me its the immutable, persistent data structures.