2012-10-22 17:58:57 UTC
I just wonder whether it is possible in a functional
language to do call site replacement. I envision this
as a special form of lazyness.
Basically I would call somewhere a function f
with an argument a:
... (f a) ...
The function would then manage to replace itself
by a function g with an argument b:
... (g b) ...
So that the next time the original call site of (f a)
is invoked in fact (g b) is invoked.