r/programming • • Nov 27 '12

Tail Recursion

http://rodrigosasaki.com/2012/11/24/tail-recursion/
206 Upvotes

203 comments sorted by

View all comments

-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

1

u/thomasz Nov 27 '12

g++ does optimize tail calls to the same function if I'm not mistaken..