Sat Mar 27 20:55:05 CET 2010
Functional programs / stateful debugging
After some time with Haskell, I'm thinking and writing Scheme code
again. Some state re-appreciation maybe.
One of the nice things to have is object pools in the form of weak
hashes. When you have state (i.e. objects) it usually makes sense to
keep track of them to look at program behaviour on the side.
A simple approach is to always place objects of a certain kind in a
weak hash table, to pay them a visit and see how their doing, or to
inject some alternative states.