newLISP Fan Club

Forum => Whither newLISP? => Topic started by: cmpitg on June 22, 2011, 07:14:56 AM

Title: Tail call optimization
Post by: cmpitg on June 22, 2011, 07:14:56 AM
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?
Title: Re: Tail call optimization
Post by: Kazimir Majorinc on June 22, 2011, 08:24:06 AM
No.
Title: Re: Tail call optimization
Post by: Lutz on June 22, 2011, 08:28:49 AM
... but newLISP has 'catch' and 'throw' if you want to write trampoline-style functions doing continuation passing style calls.
Title: Re: Tail call optimization
Post by: cmpitg on June 22, 2011, 10:36:41 AM
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.