Tail call optimization

Started by cmpitg, June 22, 2011, 07:14:56 AM

Previous topic - Next topic

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?
\"Life is a hack\"

My web log: http://cmpitg.wordpress.com\">//http://cmpitg.wordpress.com

Kazimir Majorinc

#1
No.
http://kazimirmajorinc.com/\">WWW site; http://kazimirmajorinc.blogspot.com\">blog.

Lutz

#2
... but newLISP has 'catch' and 'throw' if you want to write trampoline-style functions doing continuation passing style calls.

cmpitg

#3
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.
\"Life is a hack\"

My web log: http://cmpitg.wordpress.com\">//http://cmpitg.wordpress.com