proper tail calls

Igor Bukanov igor at mir2.org
Mon Jan 21 12:39:17 PST 2008


On 21/01/2008, Igor Bukanov <igor at mir2.org> wrote:
> On 21/01/2008, Jon Zeppieri <jaz at bu.edu> wrote:
> > But the above example *does* only require O(1) space.  On each call to
> > f, a new closure is constructed, but it's dropped on the floor as soon
> > as the next iteration occurs.
>
> You can not deduce that from ES4 specs that it does not require that f
> should be ever dropped.

Sorry for bad English here. I wanted to say:

You can not deduce that from ES4 specs. The specs does not require
that closures created during execution of a function would ever be
dropped.



More information about the Es4-discuss mailing list