3 ms·
Are you talking about the Haskell one? If so, you can't do IO inside a transaction (it won't compile), and any value not on a TVar is thread-local.
by marcosdumay 6y ago
Are you talking about the Haskell one?
If so, you can't do IO inside a transaction (it won't compile), and any value not on a TVar is thread-local.
- chrisseaton 6y ago> Are you talking about the Haskell one? No? I'm responding to the idea of the 'colour' of functions and suggesting how I think it should be in Ruby - all side effects transactional, but IO irrevocable. Drop the idea of TVar and make all mutable locations transactional.