in reply to Syntactic sugar for tail call optimizations
If you want fancier applications of this pattern please refer to the links I gave.
Here's an even simpler implementation. sub f4{ return $_[0] }
Of course, as soon as the recursive sub starts doing anything remotely requiring recursion your 'pattern' falls apart like bad knitting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Syntactic sugar for tail call optimizations
by LanX (Saint) on May 27, 2011 at 15:29 UTC | |
by BrowserUk (Patriarch) on May 27, 2011 at 15:50 UTC | |
by LanX (Saint) on May 27, 2011 at 16:05 UTC | |
by BrowserUk (Patriarch) on May 27, 2011 at 16:38 UTC | |
by LanX (Saint) on May 27, 2011 at 17:21 UTC | |
|