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 <[EMAIL PROTECTED]> wrote:

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" <[EMAIL PROTECTED]> 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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to