Tailcall Optimization
Learn how to do tailcall optimization in Perl.
We'll cover the following...
We'll cover the following...
Tailcalls
A tailcall occurs when the last expression within a function is a call to another function. The outer function’s return value becomes the inner function’s return value:
Tailcall optimization
Returning from greet_person() directly to the caller of log_and_greet_person() is more efficient than returning to ...