On Monday, 19 December 2016 06:52:40 UTC-5, Jason E. Aten wrote: > > In the context of having a REPL for Go (and the new plugin support!) where > we would generate functions at runtime, I'm curious if the garbage > collector could be made to scan (perhaps on cue) some designated sub-space > for unreachable functions? Is my assumption correct that functions are not > currently garbage collected? >
The main obstacle to building a complete Go REPL in Go---one that allows users to define new types whose methods satisfy existing interfaces, and that uses the host garbage collector to determine variable lifetimes---is a mechanism for defining new named types and attaching methods to them. See https://github.com/golang/go/issues/16522. -- 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.