Tail Call - Implementation Methods

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:

    “Cold and hunger seem more friendly to my nature than those methods which men have adopted and advise to ward them off.”
    —Henry David Thoreau (1817–1862)