@ColdWater@lemmy.ca to linuxmemes@lemmy.worldEnglish • edit-21 month agoWine acronymlemmy.caimagemessage-square92fedilinkarrow-up1557arrow-down114
arrow-up1543arrow-down1imageWine acronymlemmy.ca@ColdWater@lemmy.ca to linuxmemes@lemmy.worldEnglish • edit-21 month agomessage-square92fedilink
minus-squareѕєχυαℓ ρσℓутσρєlinkfedilink2•1 month agoI haven’t really done much recursion in Python, but can’t we do a tail-recursive version so that it (almost) never reaches recursion depth issues?
minus-square@lightnegative@lemmy.worldlinkfedilink5•1 month agoWe cannot, Python explicitly doesn’t do TCO. http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html?m=1
I haven’t really done much recursion in Python, but can’t we do a tail-recursive version so that it (almost) never reaches recursion depth issues?
We cannot, Python explicitly doesn’t do TCO.
http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html?m=1