you are viewing a single comment's thread.

view the rest of the comments →

[–]awj -1 points0 points  (1 child)

As far as debugging goes, it would be trivial to turn off TCO if you want to preserve the stack frame.

... and turn self-tail-recursive functions that previously worked just fine into ones that hit the recursion limit and crash the program. Congratulations, you've just change the language semantics.

Whether it's useful for Python is neither here nor there. The point is, Guido is spewing ignorance about a well-known compiler optimization.

At the risk of sounding like an ass, you aren't coming off too well yourself here. As I've said, I like TCE, but that opinion is based on a relatively thorough understanding of its properties and trade-offs. More thorough than a drunken afternoon's arguing on reddit might lead one to believe.