Lambda vs. function

Waldemar Horwat waldemar at google.com
Fri Oct 17 16:08:15 PDT 2008


Dave Herman wrote:
>> What you appear to be saying is that wrapping the call to g() inside 
>> another statement indicates that it will not be tail-recursive.
> 
> No, that's not what I'm saying-- that's a given and not relevant.

OK.  You just stated that it's "a given and not relevant" that the factorial lambda example I gave earlier is not tail-recursive:

lambda f(x) {
 if (x == 0)
   1;
 else
   f(x - 1);
}

That clears things up.

    Waldemar


More information about the Es-discuss mailing list