3 ms·
This is the post: https://crawshaw.io/blog/sharp-edged-finalizers https://crawshaw.io/blog/sharp-edged-finalizers
by selimthegrim 3y ago
This is the post: https://crawshaw.io/blog/sharp-edged-finalizers https://crawshaw.io/blog/sharp-edged-finalizers
- Someone 3y agoThanks. 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.