4 ms·
I think the main thing is that the use case of modifying multiple references at the same time where it is critical that all changes take place at once is less c
by Zak 9y ago
I think the main thing is that the use case of modifying multiple references at the same time where it is critical that all changes take place at once is less common in idiomatic Clojure than people might have expected.
- brandonbloom 9y agoYeah, this is exactly it. Atoms were added as a cheaper alternative to Refs for when you didn't need transactions, just compare-and-swap. Turns out that atoms work well enough for even huge single-JVM systems, and are much simpler.