Possibly Pythonic Tail Call Optimization (TCO/TRE)

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Jul 14 03:47:28 EDT 2015


On 14/07/2015 07:29, Gregory Ewing wrote:
> Marko Rauhamaa wrote:
>> Ian Kelly <ian.g.kelly at gmail.com>:
>>
>>> Another point in favor of an explicit tail-call keyword. Then one
>>> couldn't make that mistake.
>>
>> How about "return"?
>
> How about "goto"? :-)
>

Why not "goto"?  It's use is scattered throughout the cpython code, and 
to my knowledge there's no paper that says *NEVER* use it.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list