logo       

Re: Tail recursion -> while (?): msg#00248

lang.scala

Subject: Re: Tail recursion -> while (?)

Iulian Dragos <iulian.dragos@xxxxxxx> writes:

> No, I am afraid I was unclear. Scalac doesn't eliminate general tail
> calls, it only treats the simple case: recursive tail calls. I thought
> the paper was interesting in itself, although scalac does not
> implement the techniques described.
>

Hello, thanks for the precision.
Is there any reasons why scalac does not optimize general tail calls,
if, as it is shown in the paper, this is possible in Java ? It seems
to me that allowing unbounded recursion on tail calls is a central
feature of FP. AFAIK, it is required (by r5rs) for scheme
implementations.

BTW, thanks for the great work done on scala !

regards,
--
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise