in reply to Tail Recursion in Perl
I haven't dug very deep myself, but I've heard that tail recursion is a lost cause in Perl5. It's one of those things that we'll have to wait for Perl6 to get.
If you're intrested in internals, search around for Parret. It's what Perl6 will run on, but porting other languages to it is an explicit goal (unlike the Java VM), and supports some really cool stuff from functional programming (unlike .NET).
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Tail Recursion in Perl
by talexb (Chancellor) on Dec 31, 2003 at 17:13 UTC |