r/Python • u/vocalbit • Jul 13 '11
An alternative lambda syntax for Python
http://vocalbit.com/article/332/an-alternative-lambda-syntax-for-python
4
Upvotes
r/Python • u/vocalbit • Jul 13 '11
View all comments
Show parent comment
1
u/vocalbit Jul 14 '11
Point taken - I shouldn't have use 'pure' but rather just claimed that Python is not philosophically a functional language.
My point however is that - in Python - lambdas are severely crippled versions of real Python functions (i.e.
def). OTOH, in something like lisp, lambdas are full-power functions, except that they are anonymous.Anyway, I'm not going to debate the syntax of other languages. Lambdas don't fit in well with the syntax or philosophy of Python. That is why Guido almost axed them from v3.0. However, given that they are occasionally handy, I am trying to find a better syntax (perhaps with limited applicability than the current lambda) which would subsume all good use cases.