|
|
|
|
|
by zawodnaya
1302 days ago
|
|
This is true, if you write `bracket` for e.g. `Exception`, then you can break out of the bracket with `abort` if your bracket doesn't handle aborts. So if you want to be really sure of resource cleanup, you should use something like the `Resource` ability to acquire resources: https://share.unison-lang.org/@runarorama/code/latest/namesp... |
|
Also I would suggest removing Exception.bracket from base then, or at least changing the file handle example for Exception.bracket, since it seems a tad dangerous.