News for hackers. Stuff that matters.
Re:Functional programming in Python by ericmoritz on Saturday May 12, 2012 @07:51AM (#3963571)
I wish he would add TCE for the sole fact that parsing tree like structures feels much more natural using recursion than it does with a for loop. I am always paranoid that a really deep structure will cause an stack depth exceeded exception.

There's a quote from Guido about private attribute access where he said, "We're all adults", and that leaving the open is beneficial.

Recursion is another tool that he should let us adults use if it solves a problem better and TCE is lovely feature to have. Frankly, if you're using recursion, you either just learned it in a CompSci class or you know what you're doing. Either way, daddy Guido shouldn't tell us no :).

Re:Functional programming in Python by lucian1900 on Saturday May 12, 2012 @09:22AM (#3963758)
You can use an explicit trampoline to make sure you don't block the stack. It's not as clean, but still better than loops.