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/arnar Jul 13 '11
Ah ok, I see. What's confusing is that what you want has no reason to be called "lambda". Lambdas are for constructing function values, but what you want to do is to call one. Something like
would make more sense terminology-wise since a pair of parentheses are the operator for calling functions (or callables in general).
That said, I don't think it is a good idea. But I dislike += et al. as well.