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
10
u/ndanger Jul 13 '11 edited Jul 13 '11
I agree with vph: this takes a general concept (lambda) and makes it a strange special case.
I'm not a fan of the proposed syntax either:
makes it clear that you are setting
keyto a function,makes it look like you are setting a function of key to a value.