proper tail calls
gordonhenriksen at mac.com
Mon Jan 21 15:28:24 PST 2008
On 2008-01-21, at 18:13, Peter Hall wrote:
>> The argument (which I do not think is decisive) is that PTC breaks
> I am a bit out of my depth in this discussion, but explicit syntax
> feels wrong to me. However, if it's going to be implicit, it has to
> be completely invisible (aside from the benefits) - developers are
> going to want their debugging tools to work as before.
> Is there a practical approach to recursion counting, that ES4 could
> require, so that Error.getStackTrace() can use it to produce the
> "expected" result?
Tail calls do not have to be self recursive. Only a stack could
maintain the necessary state...
More information about the Es4-discuss