RE: bracketOnError, while, forever

On 07 February 2005 12:51, Peter Simons wrote:
I just found the rather useful function 'bracketOnError' in Network.hs and was wondering why it is not exported. You need this combinator every time you fork off a computation with an acquired resource, which happens pretty often in network code, so I think making it available would be worthwhile.
I think we should have bracketOnError, but I don't think the name is that great. Any ideas for a better one? Cheers, Simon

Simon Marlow writes:
I think we should have bracketOnError, but I don't think the name is that great. Any ideas for a better one?
When I discovered the function in Network.hs, I knew right away what it would do; just by seeing the name and how it was used. So the name can't be that bad, IMHO. ;-) Peter
participants (2)
-
Peter Simons
-
Simon Marlow