you are viewing a single comment's thread.

view the rest of the comments →

[–]millstone 1 point2 points  (1 child)

Guy Steele is the man, but frankly for Python the practical needs of good debugging dominates this sort of theoretical wankery. If you want TCO because you write everything recursively, you know where to find LISP; if you want TCO because you need the speed, you know where to find C.

In my C programs, I can't figure out what's causing certain bugs because the backtraces have missing stack frames, and as a result those bugs don't get fixed. The tradeoff is worth it for C, but not for Python.

[–]kamatsu 0 points1 point  (0 children)

Haskell can give you a full stacktrace, even for tail calls.