lambdak: multi-line lambda implementation in native Python
Gregory Ewing
greg.ewing at canterbury.ac.nz
Sat Jan 17 16:56:07 EST 2015
Chris Angelico wrote:
> Every once in a while, someone looks at Py2's print statement and
> Py3's print function and says, "why not allow function calls without
> parentheses". This right here is why not.
There's also the fact that the parens are needed to
distinguish between calling a function and using the
function itself as a value.
Ruby doesn't have that problem because it doesn't
have functions, only methods, and the only thing you
can do with a method in Ruby is call it.
--
Greg
More information about the Python-list
mailing list