[Python-ideas] Ruby-style Blocks in Python Idea
Aahz
aahz at pythoncraft.com
Mon Mar 9 16:45:05 CET 2009
On Mon, Mar 09, 2009, Sturla Molden wrote:
>
> I see no reason for introducing two new keywords to do this, as you are
> really just enhancing the current lambda keyword.
>
> On the other hand, turning blocks into anonymous functions would be very
> useful for functional programming. As such, I like your suggestion.
There's a substantial minority (possibly even a majority) in the Python
community that abhors functional programming. Even among those who like
functional programming, there's a substantial population that dislikes
extensive use of anonymous functions. The trick to getting features for
functional programming accepted is to make them look as Pythonic as
possible.
Right now, I'm somewhere between -0 and -1 on this proposal, because all
the motivation I see looks like it's perfectly satisfied by using ``def``
instead of lambda.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"All problems in computer science can be solved by another level of
indirection." --Butler Lampson
More information about the Python-ideas
mailing list