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

Terry Reedy tjreedy at udel.edu
Mon Mar 9 23:31:36 CET 2009


average wrote:
>>> [RE:"using" keyword].Setting it off with a new keyword, or

> MY point was really about how the programming art *itself* hasn't
> fully explored this concept to even be able to *evaluate* the power
> and usefulness of employing techniques such as code blocks.  To me,
> Python and Ruby are both exciting and interesting examples of how
> language design is evolving to find ways to express and evolve that
> power.  In my mind, there is no doubt that languages will have to find
> elegant ways to express that power.  What's cool about Python and Ruby
> is that it's taking that vast general space of the "mind's assembly
> language" and distilling it down into nicely manageble and elegant
> chunks of language syntax.  The concept of distinct, passable code
> blocks is a nice example of that compression, one that certainly has
> correspondence within our biology.

A function is a possibly parameterized code block that can be passed 
around and called.  Anonymity is a defect, not an advantage.  So your 
attempted differentiation looks a bit like mystical gibberish to me.  Sorry.




More information about the Python-ideas mailing list