You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know whether this is desirable or not. Does it suggest that bracket should require IOE? Here's a discussion where I came to the conclusion that it shouldn't.
On the other hand, in any specific case of the body of the bracket I do statically know all exceptions that could be raised (there are any number of Bluefin ones, plus IO ones, if I have IOE) so the exact same behaviour can be simulated without bracket. Perhaps this behaviour then isn't so surprising.
The difference is that bracket somehow detects all exceptions, without statically knowing which ones are possible. That also may be fine, because in theory each use of handle (or its equivalents) could introduce into Eff a dynamic collection of all exceptions in scope.
Let's see how this plays out in practice. It seems like we should recommend against observable behaviours in bracket's "after", but maybe it's not so terrible if it happens.
I don't know whether this is desirable or not. Does it suggest that
bracket
should requireIOE
? Here's a discussion where I came to the conclusion that it shouldn't.#8
Maybe we should revisit that discussion.
The text was updated successfully, but these errors were encountered: