Proposed keyword to transfer control to another function

Serhiy Storchaka storchaka at gmail.com
Fri Jul 17 23:48:13 EDT 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
> thread.
>
> 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 mailing list