[erlang-questions] System getting hang after running normal recursion program
Sat Oct 7 13:34:50 CEST 2017
In C your infinite recursion will cause infinite increase in stack
size (infinite number of return addresses and local variables that
should be remembered). There are some languages coming with
optimizations making you able to call functions infinitely as long as
the last line of code is same function call  or another function
call . Erlang is of latter type so if last code of your recursion
function is another function call, there is no reason to terminate it.
Stack won't grow infinitely and Is perfectly fine to keep running.
More information about the erlang-questions