Adding `try_finally` or `protect` to the standard library, a poll

I’ve recently raised a PR to expose try_finally in the OCaml standard library, you can see the details in the PR message and the discussion there.

As for most standard library changes, we should get the right name from the beginning, otherwise we end up deprecating functions and creating unnecessary complications. There is a poll at the bottom of the PR discussion to decide the preferred name and signature: “name poll”

Please go and leave your vote. I’m posting this here to try and get as much feedback as possible before updating the PR with the final name.

1 Like