[erlang-questions] Tail call optimization
Mon Oct 17 10:58:59 CEST 2016
Erlang guarantees tail recursion optimization and states it in the
Does erlang guarantee that tail call optimization is done in a generic
case, without recursion?
Say, we have a function calling a function from another module as its
Is it guaranteed that xxx:beta() will use the stack of alpha()
regardless whether recursion is involved.
I mean whether the language guarantees it rather than virtual machine
may provide such optimization.
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions