Proposed keyword to transfer control to another function
storchaka at gmail.com
Sat Jul 18 05:48:13 CEST 2015
On 17.07.15 02:46, Chris Angelico wrote:
> Out of the lengthy thread on tail call optimization has come one broad
> theory that might be of interest, so I'm spinning it off into its own
> The concept is like the Unix exec[vlpe] family of functions: replace
> the current stack frame with a new one. This can be used for explicit
> tail recursion without repeated stack frames, or for a pre-check that
> then disappears out of the stack. Like any other feature, it can be
> misused to make debugging difficult, but among consenting adults,
> hopefully it can be used sensibly.
I think there is no chance that this proposition will be accepted by
Guido, because it makes debugging harder.
More information about the Python-list