merari42@lemmy.world to Programmer Humor@programming.devEnglish · 6 months agoSome of my iterations are delightfully recursivelemmy.worldimagemessage-square15fedilinkarrow-up13
arrow-up13imageSome of my iterations are delightfully recursivelemmy.worldmerari42@lemmy.world to Programmer Humor@programming.devEnglish · 6 months agomessage-square15fedilink
minus-squareaubeynarf@lemmynsfw.comlinkfedilinkarrow-up1·5 months agoNot just calls to self - any time a function’s last operation is to call another function and return its result (a tail call), tail call elimination can convert it to a goto/jump.
Not just calls to self - any time a function’s last operation is to call another function and return its result (a tail call), tail call elimination can convert it to a goto/jump.