Tail call optimization

Pondering the philosophy behind the language
Locked
cmpitg
Posts: 10
Joined: Thu May 05, 2011 1:10 am
Location: Hanoi
Contact:

Tail call optimization

Post 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?
"Life is a hack"
My web log: http://cmpitg.wordpress.com

Kazimir Majorinc
Posts: 388
Joined: Thu May 08, 2008 1:24 am
Location: Croatia
Contact:

Re: Tail call optimization

Post by Kazimir Majorinc »

No.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: Tail call optimization

Post by Lutz »

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

cmpitg
Posts: 10
Joined: Thu May 05, 2011 1:10 am
Location: Hanoi
Contact:

Re: Tail call optimization

Post 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.
"Life is a hack"
My web log: http://cmpitg.wordpress.com

Locked