|
|
|
|
|
by tptacek
4597 days ago
|
|
It may be part of the "public API" solely because it needs to be made available to several different components of the standard library, which is itself at pains to implement itself primarily in Golang. SetFinalizer feels like a low blow, here. |
|
File descriptors are just one case of resources that need finalization functionality to not leak: the same applies to GPU textures, X server resources, etc. etc.