Closed jleonard-r7 closed 2 years ago
Does :db.fn/call solves it for you?
Ah yes that works. I still think cas is not entirely useful in its current form because one typically wouldn't know the "old-value" without doing a query first.
It might be useful for transactional semantics, I guess. You hold onto value, and when you decide to update it, make sure that nobody has updated it before you
a la clojure.core/swap!
It would be trivial to implement and would be vastly more user friendly.