
5 Jan
2007
5 Jan
'07
3:19 p.m.
Not that I've worked through yet. I really could be using IORef for
now, but I started using MVar because I might start using multiple
threads at some point, and I'd like to get comfortable with MVars for
that time.
On 1/4/07, Mike Gunter
Do you need to maintain invariants that span the two? Put operationally, do you want different threads to be able to access a and b concurrently?
-m
"Chad Scherrer"
writes: When using MVars, is there a reason to prefer using MVar (a,b) over (MVar a, MVar b), or vice versa? I'm not sure if this is really a question of style, or if there are practial implications I'm missing one way or another. Thanks! Chad Scherrer