3 ms·
Quite regularly in Python, despite the stack limitation. Why? It's sometimes the only elegant way to walk over small tree-like data structures, the depth of wh
by tus666 4y ago
Quite regularly in Python, despite the stack limitation.
Why? It's sometimes the only elegant way to walk over small tree-like data structures, the depth of which you can be safely assured will never approach Python inbuilt limit (and if they did, it would always be a data error that should fail anyways).
I do wish Python had Perl-style tail-recursion though.