-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: deprecate SetFinalizer #70425
Comments
Related Issues Related Code Changes (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
To be clear, it may end up that we don't do this at all. I agree with @ianlancetaylor's point that the lack of a trivial migration path makes it hard to justify yammering at people about in IDE pop-ups. It's unfortunate, but given that |
Noting here that https://go.dev/wiki/Deprecated is the place where it is documented that:
Also that:
Since deprecation was a part of the accepted proposal #67535 it seems that's done, but if you think this needs more discussion, you might want to take advantage of that process again. Otherwise you can just refer to that existing accepted proposal. |
Change https://go.dev/cl/634318 mentions this issue: |
Steer people from SetFinalizer to AddCleanup. Address some of the *non*-constraints on AddCleanup. Add some of the subtlety from the SetFinalizer documentation to the AddCleanup documentation. Updates #67535. Updates #70425. Change-Id: I8d13b756ca866051b8a5c19327fd5a76f5e0f3d7 Reviewed-on: https://go-review.googlesource.com/c/go/+/634318 Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Austin Clements <austin@google.com>
The original intent of proposal #67535 included the deprecation of SetFinalizer. While the proposal is approved and the implementation has landed in the tree, we feel less comfortable with deprecating SetFinalizer in the same release as the addition of AddCleanup. Notibly, the lack of a trivial migration from SetFinalizer to AddCleanup was an issue that was mentioned. This issue intends to track the deprecation of SetFinalizer in a future release of Go and the discussion surrounding it.
@mknyszek @cagedmantis @ianlancetaylor
The text was updated successfully, but these errors were encountered: