4 ms·
Clojure tracks and rollbacks the STM-bound variables according the STM rules; it is not intended to prevent you from doing other effects inside those transactio
by platz 9y ago
Clojure tracks and rollbacks the STM-bound variables according the STM rules; it is not intended to prevent you from doing other effects inside those transactions; you are supposed to have an understanding not to do that in the transaction blocks.
It helps a bit that most clojure datastructures are immutable/persistant by default.
- tome 9y agoIn other words Haskell's STM prevents bugs that Clojure's merely supposes the programmer not to have written.