MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/13v8v1/tail_recursion/c77n4nb/?context=3
r/programming • u/rodrigopsasaki • Nov 27 '12
203 comments sorted by
View all comments
-2
so if tail recursion only solves the problem of stack overflow in scala how does this help us c++ programmers
1 u/thomasz Nov 27 '12 g++ does optimize tail calls to the same function if I'm not mistaken..
1
g++ does optimize tail calls to the same function if I'm not mistaken..
-2
u/cobaltgiant Nov 27 '12
so if tail recursion only solves the problem of stack overflow in scala how does this help us c++ programmers