Jon Harrop a écrit :
Just debating somewhere else whether or not Python might be considered a
functional programming language. Lua, Ruby and Perl all seem to provide
first class lexical closures.
def makeadder(x):
def add(y):
return x+y
return add
If that's what you mean
Just debating somewhere else whether or not Python might be considered a
functional programming language. Lua, Ruby and Perl all seem to provide
first class lexical closures.
What is the current state of affairs in Python? Last time I looked they were
just removing (?!) closures...
--
Dr Jon D
On Oct 14, 7:54 am, Jon Harrop [EMAIL PROTECTED] wrote:
Just debating somewhere else whether or not Python might be considered a
functional programming language. Lua, Ruby and Perl all seem to provide
first class lexical closures.
What is the current state of affairs in Python? Last time I