Page 1 of 1

Tail call optimization

Posted: Wed Jun 22, 2011 2:14 pm
by cmpitg
I have done some search in the forum but yet I haven't found the answer for a just-out-of-curiosity question: Does newLISP do tail call optimization?

Re: Tail call optimization

Posted: Wed Jun 22, 2011 3:24 pm
by Kazimir Majorinc
No.

Re: Tail call optimization

Posted: Wed Jun 22, 2011 3:28 pm
by Lutz
… but newLISP has 'catch' and 'throw' if you want to write trampoline-style functions doing continuation passing style calls.

Re: Tail call optimization

Posted: Wed Jun 22, 2011 5:36 pm
by cmpitg
I see. I just want to write functions with functional programming style. In my oppinion, it's a disadvantage of newLISP not to have tail call optimization.