What would the runtime.Leaks channel do with the received errors? Why can't
you just do the same thing from the finalizer itself?

On Thu, Apr 5, 2018 at 1:43 PM, Mateusz Czapliński <czapko...@gmail.com>
wrote:

> Based on a recent discussion on reddit, and a reply by BowsersaurusRex:
>
>     "In C# I'll often use finalizers to track bugs in which an object was
> GC'd but Close() was never called."
>
> I submitted the following proposal:
>
>     https://golang.org/issue/24696
>
> I'd love to see a solution which would not require adding to package
> runtime, but as of now I don't see how it could be possible — esp. if
> stdlib packages were to use it.
>
> I'm curious what are your thoughts on whether this would be a good idea?
> Do you see some problems with that? Do you think it could be done outside
> standard library?
>
> /Mateusz.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to