Re: Extending deref

2008-12-12 Thread Rich Hickey
On Dec 12, 2:15 am, Mark Engelberg mark.engelb...@gmail.com wrote: If you wanted to extend deref to new types, is there any way to do that? For example, deref of a delay could be equivalent to a force. Or deref of a Future could invoke the Future's get method. This would give you the

Extending deref

2008-12-11 Thread Mark Engelberg
If you wanted to extend deref to new types, is there any way to do that? For example, deref of a delay could be equivalent to a force. Or deref of a Future could invoke the Future's get method. This would give you the handy @ reader macro for things that frequently need to be forced to evaluate