News for hackers. Stuff that matters.
Re:The absurd cost of finalizers in Go by Someone on Sunday May 21, 2023 @07:17AM (#36019775)
Thanks. So, the small useful feature is that it can be used to (unreliably, as finalizers aren’t guaranteed to run) detect resource leaks.

Such code wouldn’t have to mutate the object being finalized (or any other object, for that matter), so I think that use case would better be served by a more light-weight feature, removing finalizers edge cases such as objects that get revived.

There are no comments on this comment yet.