Tail call optimization

Pondering the philosophy behind the language

Tail call optimization

Postby cmpitg » Wed Jun 22, 2011 2:14 pm

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
cmpitg
 
Posts: 10
Joined: Thu May 05, 2011 1:10 am
Location: Hanoi

Re: Tail call optimization

Postby Kazimir Majorinc » Wed Jun 22, 2011 3:24 pm

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

Re: Tail call optimization

Postby Lutz » Wed Jun 22, 2011 3:28 pm

… but newLISP has 'catch' and 'throw' if you want to write trampoline-style functions doing continuation passing style calls.
Lutz
 
Posts: 5276
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: Tail call optimization

Postby cmpitg » Wed Jun 22, 2011 5:36 pm

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
cmpitg
 
Posts: 10
Joined: Thu May 05, 2011 1:10 am
Location: Hanoi


Return to Whither newLISP?

Who is online

Users browsing this forum: No registered users and 2 guests

cron