3 ms·
> Actually, an infinitely recursing function in Go never completes on my machine. Maybe your function is tail-recursive? Try to use the return value from the
by ycombobreaker 14y ago
> Actually, an infinitely recursing function in Go never completes on my machine.
Maybe your function is tail-recursive? Try to use the return value from the recursive call in a nontrivial way, so that stack storage is necessary to store some local variable.
- lobster_johnson 14y agoApparently Go allocates the stack as a heap structure, as was pointed out in another comment: http://stackoverflow.com/questions/4226964/how-come-go-doesnt-have-stackoverflows http://stackoverflow.com/questions/4226964/how-come-go-doesn...