Get the latest tech news

Tail Recursion Elimination (2009)


I recently posted an entry in my Python History blog on the origins of Python's functional features . A side remark about not supporting ta...

I think your analysis that you'd rather have informative stack traces than have "optimize all cases" is fine -- it comes down to which one would user's prefer and I'll trust your judgment on that. You'd trade a bit of space and time in exchange for infinite (within memory constraints) recursion and nice stack traces for TRE-optimized functions. They essentially change the space complexity of programs, and they allow code to be decentralized where loops require big spaghetti centralization.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Related news:

News photo

Animating Ptolemy's Equant with Python, SVG, and CSS

News photo

NiceGUI – Simple web apps with Python

News photo

Extracting Words from Scanned Books: A Step-by-Step Tutorial with Python, OpenCV