r/Python • • Jul 13 '11

An alternative lambda syntax for Python

http://vocalbit.com/article/332/an-alternative-lambda-syntax-for-python
4 Upvotes

41 comments sorted by

View all comments

27

u/vph Jul 13 '11

bad idea.

This is not an "alternative" to lambda, but rather a syntactic sugar for this particular use. There are other use cases of lambda, not expressible by this "alternative" syntax.

Further, the current lambda syntax is closer to those employed by other (purer) functional programming languages. Changing the current syntax is not a good idea.

0

u/vocalbit Jul 13 '11

Further, the current lambda syntax is closer to those employed by other (purer) functional programming languages. Changing the current syntax is not a good idea.

Since Python is not a pure-functional language, why even have a lambda keyword?

5

u/joehillen Jul 13 '11

Guido has proposed removing it several times.

3

u/A_for_Anonymous Jul 13 '11

I propose removing the division operator, since it's confusing to some people.