Implementation Methods
Tail recursion is important to some high-level languages, especially functional and logic languages and members of the Lisp family. In these languages, tail recursion is the most commonly used way (and sometimes the only way available) of implementing iteration. The language specification of Scheme requires that tail calls are to be optimized so as not to grow the stack. Tail calls can be made explicitly in Perl, with a variant of the "goto" statement that takes a function name: goto &NAME;
Various implementation methods are available.
Read more about this topic: Tail Call
Famous quotes containing the word methods:
“If men got pregnant, there would be safe, reliable methods of birth control. Theyd be inexpensive, too.”
—Anna Quindlen (b. 1952)
Related Phrases
Related Words