
23 Nov
2008
23 Nov
'08
3:45 p.m.
"Robin" == Robin Green
writes:
Robin> It occurs to me that garbage collection can be seen as some Robin> kind of dual of laziness. Laziness means deferring the Robin> creation of values until later in the future (or even Robin> never). Garbage collection means eagerly destroying data Robin> created in the past, and reclaiming the memory used by it, Robin> before some other event which would do so I think of garbage collection in the opposite way - that the programmer doesn't free the memory as soon it is known to be safe to do so, but leaves the job to a garbage collector, which may not get round to it for quite some time (perhaps not until program termination, even). -- Colin Adams Preston Lancashire