[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Addition of map() and filter().
- From: Javier Guerra <javier@...>
- Date: Tue, 13 Oct 2009 22:03:21 -0500
Mark Hamburg wrote:
> On Oct 13, 2009, at 3:35 PM, TNHarris wrote:
> > return something, F()
> >
> > ... isn't a tail-call. I thought it would be, but the comma operator
> > is
> > enough to prevent the optimization. I think it would be a worthwhile
> > change to the VM to allow a tail-call in this case.
>
> This can't be a tail call because it has to process the results of F()
> to combine them with something before returning further up the chain.
Note that even Scheme can't tail-call similar constructs
--
Javier