Re:Tail recursion in Python
by deckard1 on Saturday March 17, 2018 @02:20PM
(#16608263)
> racket and guile has expanding stacks and doesn't have a recursion limit other than the whole memory of the computer
I'm not familiar with how these two in particular work internally, but this may actually be more a side effect related to the implementation of call/cc than recursion. A popular technique is to truncate the stack when a continuation is captured. So you obviously need a stack that can expand.
I'm not familiar with how these two in particular work internally, but this may actually be more a side effect related to the implementation of call/cc than recursion. A popular technique is to truncate the stack when a continuation is captured. So you obviously need a stack that can expand.