2 ms·
> While I agree, as a Python developer the vast majority of my experience with recursion is thinking "Oh, wait - I can't do that, I'll reach the stack limit". I
by busterarm 10y ago
> While I agree, as a Python developer the vast majority of my experience with recursion is thinking "Oh, wait - I can't do that, I'll reach the stack limit". In fact I would go so far as to argue that for any language without proper tail recursion, recursion is almost certainly the wrong way to solve a problem.
Thank you for pointing out the thing that I couldn't remember that always bothered me the times that I had to work in Python. I'm blown away by the vast amount of work being done in that language without it, thought I understand Guido's reasons...and I agree with yours about using recursion in it.
- GreaterFool 10y agoI think in 2016 it should be clearly established that tail recursion is a fundamental programmer right! It is time to write it into programmer constitution.
- busterarm 10y ago"If JavaScript has it, what are you doing without it?"