Well, how do other languages implement GC? Which language, in your opinion,
has the best form of garbage collection? I only know a little bit about
GC, and then only with regards to Perl and Ruby. I have no idea how C, C++,
Java, Smalltalk, OCaml, Lisp, etc handle GC behind the scenes.
I agree it is interesting. But you will not see it in (my) Ruby in
the near future. I have to consider it more deeply, since I have
some concerns about implementation / language impact of the idea.
I’m not suggesting it as a request for the current Ruby. I
mention the idea
because it is an interesting thought and because I’m
implementation of the language.
I think that introducing manual deletion into a language like Ruby may
create an inbalance and have an adverse effect on code design.
If I could just come up with a way of (quickly) detecting the
object isn’t referenced anymore…