develooper Front page | perl.perl5.porters | Postings from January 2008

Re: For 5.12: tail calls for methods

Thread Previous | Thread Next
Aristotle Pagaltzis
January 18, 2008 07:51
Re: For 5.12: tail calls for methods
Message ID:
* Nicholas Clark <> [2008-01-18 16:30]:
> Also, I'm not certain if it is "correct" to do this
> automatically, given:

Which is precisely what I meant by “rat hole.” In a language as
late-bound as Perl, it’s hard to imagine how to do *any* kind of
recursion detection, and even more so how to do any sort of
static analysis to avoid performance hit on *every* call.

Statically detecting tail calls in general, though, is easy, and
providing syntax so the user can explicitly request a tail call
is even easier.

Aristotle Pagaltzis // <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About