If CPS is out - what about passing the loop condition and body into a
function that does the looping for you.
in pseudo code
defn loop_fn(cond, body)
while (cond()) do
body()
end
end
this avoids the need for tail calls entirely - and I presume the whole
lot
This idea is a real gem!
Would it not be possible to remove the need for a looping handle by a
CPS conversion?
James.
On 10/04/2010, at 5:00 AM, [email protected] wrote:
>
> I ask because I still have a perverse desire to follow up on an idea
> John Rose gave me to implement