top | item 11961193 (no title) aktiur | 9 years ago Your function in the tail recursion optimization exemple is actually not tail recursive. Factorial needs an accumulator parameter to get that tail call. discuss order hn newest agumonkey|9 years ago Maybe the decorator rewrites the AST. I've seen this before. santialbo|9 years ago It does, when the function is actually tco optimizable. The example is not. On the docs however it's correct http://coconut.readthedocs.io/en/master/DOCS.html#recursive load replies (1)
agumonkey|9 years ago Maybe the decorator rewrites the AST. I've seen this before. santialbo|9 years ago It does, when the function is actually tco optimizable. The example is not. On the docs however it's correct http://coconut.readthedocs.io/en/master/DOCS.html#recursive load replies (1)
santialbo|9 years ago It does, when the function is actually tco optimizable. The example is not. On the docs however it's correct http://coconut.readthedocs.io/en/master/DOCS.html#recursive load replies (1)
agumonkey|9 years ago
santialbo|9 years ago