[$] Alternative syntax for Python’s lambda

Post Syndicated from jake original https://lwn.net/Articles/847960/rss

The Python lambda
keyword, which can be used to create small, anonymous functions,
comes from the world of functional
, but is perhaps not the most beloved of Python features.
In part, that may be because it is somewhat clunky to use, especially in
comparison to the shorthand notation offered by other languages, such as
JavaScript. That has led to some discussions on possible changes to lambda in Python
mailing lists since mid-February.