Is there a way to change the closure of a python function?
alister
alister.ware at ntlworld.com
Wed Sep 28 11:30:00 EDT 2016
On Wed, 28 Sep 2016 21:48:20 +1000, Steve D'Aprano wrote:
> On Wed, 28 Sep 2016 08:03 pm, Lawrence D’Oliveiro wrote:
>
>> On Wednesday, September 28, 2016 at 9:53:05 PM UTC+13, Gregory Ewing
>> wrote:
>>> Essentially you write the whole program in continuation-
>>> passing style, with a state object being passed down an infinite chain
>>> of function calls.
>>
>> Procedural programming under another name...
>
> Only in the sense that procedural programming is unstructured
> programming under another name. What is a procedure call but a disguised
> GOSUB, and what is GOSUB but a pair of GOTOs?
by this analysis isn't any function call the same?
are not loops just stylised conditional gotos?
--
We only support a 28000 bps connection.
More information about the Python-list
mailing list