# [Haskell-cafe] do you have to use fix with forkio?

Martijn van Steenbergen martijn at van.steenbergen.nl
Sat Mar 7 17:34:42 EST 2009

Derek Elkins wrote:
> If you are doing something else, use something else.  This makes it
> clear that you -aren't- going to break out (non-exceptionally), i.e. the
> control flow is more obvious in this code than in the other versions.

Oh yes, of course! I wasn't saying forever is bad; in fact I agree with
you that it's the best solution in this case. I just wanted to note that
forever isn't always a good substitute for "fix \$ \loop ->", without
implying that was what you were suggesting.

Martijn.

More information about the Haskell-Cafe mailing list