On Mon, Mar 8, 2010 at 3:25 AM, John Fremlin john@fremlin.org wrote:
Here is how ClozureCL does the same thing. I'm not at all suggesting that it's better than with-collector, just that it is another example of this useful wheel being invented.
My opinion is that something along these lines would be grand.
Ah, haven't seen this particular version. It is definitely a lot more flexible. Although, it is telling that the ClozureCL code base doesn't actually uses the extra features (which are actually broken, too). But given the target of inclusion in Alexandria, flexibility is probably a good thing.
The only thing that irks me is the lack of an implicit return value, although both features could be provided for by providing a NIL block so that explicit returns could be used where required.
If folks are more interested in a more general version, I'll put together a working implementation.