[Python-ideas] async: feedback on EventLoop API

Sam Rushing sam-pydeas at rushing.nightmare.com
Tue Dec 18 19:55:27 CET 2012


On 12/17/12 12:33 PM, Ronan Lamy wrote:
> It seems to me that a DelayedCall is nothing but a frozen, reified
> function call. That it's a reified thing is already obvious from the
> fact that it's an object, so how about naming it just "Call"?
> "Delayed" is actually only one of the possible relations between the
> object and the actual call - it could also represent a cancelled call,
> or a cached one, or ...
In the functional world, these are called 'thunks'.  I don't know if
that's a more obvious name, but a fun one.

http://en.wikipedia.org/wiki/Thunk_(functional_programming)

-Sam




More information about the Python-ideas mailing list