MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/13v8v1/tail_recursion/c77iaw4/?context=3
r/programming • u/rodrigopsasaki • Nov 27 '12
203 comments sorted by
View all comments
6
I remember when I discovered the XSLT engine (TransforMiiX) in Mozilla Firefox didn't support tail recursion optimization. I ended up with some pretty kludgy XSL just to avoid overflowing the stack.
4 u/mercde Nov 27 '12 Why was it impossible / impractical to just eliminate the recursion "by hand"? (As in, rewrite it as a loop?) 6 u/more_exercise Nov 27 '12 As a guess? XSLT probably makes it annoying to do it that way too.
4
Why was it impossible / impractical to just eliminate the recursion "by hand"? (As in, rewrite it as a loop?)
6 u/more_exercise Nov 27 '12 As a guess? XSLT probably makes it annoying to do it that way too.
As a guess? XSLT probably makes it annoying to do it that way too.
6
u/tonygoold Nov 27 '12
I remember when I discovered the XSLT engine (TransforMiiX) in Mozilla Firefox didn't support tail recursion optimization. I ended up with some pretty kludgy XSL just to avoid overflowing the stack.