Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Apparently Go allocates the stack as a heap structure, as was pointed out in another comment: http://stackoverflow.com/questions/4226964/how-come-go-doesn...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: