2 ms·
So, we need tail recursion so we can prematurely optimize the space/time of our programs. Sarcasm aside I'm sure for some people, for some applications that is
by njharman 18y ago
So, we need tail recursion so we can prematurely optimize the space/time of our programs.
Sarcasm aside I'm sure for some people, for some applications that is needed. But there are plenty of languages that do that and do that well. Why do people want every language to be "their" language. For Python I'm glad Guido is following the Zen of Python.
- Hexstream 18y agoI think the "premature optimization" phrase is usually used in contexts where you have to perform said optimizations by hand... (of course in some cases you'll have to consciously write a procedure as tail-recursive).