Subject: Re: Tail recursion & CL
From: Erik Naggum <>
Date: Sat, 20 Oct 2001 15:41:39 GMT
Newsgroups: comp.lang.lisp
Message-ID: <>

* Frode Vatvedt Fjeld <>
| I was thinking a about possible syntax for explicitly requesting
| tail-call merging.  Isn't return-from almost that operator?  Every
| return-from used to exit a function is in effect a tail call for that
| function (?).  Maybe return-from could be extended to communicate the
| programmer's intention when the result-form is a function call?

  Since you could wrap the entire function body in a return-from, I think
  this would not be helpful.  Figuring out whether a function call is in a
  tail-call-mergable "position" is not helped by such use of this form.

  Norway is now run by a priest from the fundamentalist Christian People's
  Party, the fifth largest party representing one eighth of the electorate.
  The purpose of computing is insight, not numbers.   -- Richard Hamming