Re:PHP finally gets finally
by chc on Monday August 13, 2012 @01:22PM
(#4376941)
Destructors aren't a good way to free resources in a garbage collected language.
[ Parent
| on HN ]
I have yet to see a language that actually cleans up after itself. Many will attempt to free memory, but what about files, db connections, windows, sockets?
Have you heard about Racket's custodians?
[1] http://docs.racket-lang.org/reference/eval-model.html#(part....
Re:PHP finally gets finally
by true_religion on Monday August 13, 2012 @04:04PM
(#4377832)
Does ref-counting count as garbage collection?