4 ms·
In Clojure they require that all operations that affect STM are explicitly done inside a transaction, otherwise an error is raised.
by cema 17y ago
In Clojure they require that all operations that affect STM are explicitly done inside a transaction, otherwise an error is raised.
- jrockway 17y agoI see, so it complains at runtime when when a transaction is not "in effect" and someone calls a transactional function?
- cema 17y agoYes, I believe it is correct. Keep in mind Clojure is running on top of jvm so they had to, first, figure out a balance between being practical and being "pretty" and, second, work within the constraints of the environment. I think Rich Hickey has done a tremendous job here (and keeps doing it).