31 ms·
Clojure absolutely has threads, in the common meaning of the term. I use futures all over the place in my code, and it's quite idiomatic. (future (do (foo 1) (
by arohner 14y ago
Clojure absolutely has threads, in the common meaning of the term. I use futures all over the place in my code, and it's quite idiomatic.
(future (do (foo 1) (bar 2)) Runs the expression on another thread. Futures intentionally compose well with the built-in clojure concurrency tools.
Clojure has no dislike of threads. It scorns locks, and code that is safe in one thread, but unsafe in multi-threaded situations.
- gruseom 14y agoAh, thanks for the correction and teaching me something.