[Python-ideas] Ruby-style Blocks in Python Idea

Guido van Rossum guido at python.org
Mon Mar 9 17:45:07 CET 2009

On Mon, Mar 9, 2009 at 9:43 AM, average <dreamingforward at gmail.com> wrote:
> While there are several complaining that all this can be done with a
> def, there's an critical distinction being overlooked.  Passing around
> code blocks is a very different style of programming that Python or
> most languages like it have ever experimented with.  The programming
> art itself hasn't really even explored the different range of thinking
> this style of programming opens up.  Where as most function
> definitions are verb-like, this would be a noun-like definition.  Akin
> perhaps to the difference between a hormone in the body and a
> neurotransmitter, respectively.Setting it off with a new keyword, or
> expanding the use of lambda is really a mandatory way of signifying
> this INTENT.

Your claim that this is somehow something new seems to be overlooking
Lisp and Smalltalk, as well as Ruby which was mentioned in the quoted
blog post.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-ideas mailing list