From: Matt Gushee Date: 2002-09-05T01:30:16+09:00 Subject: Re: Ruby aesthetics On Wed, Sep 04, 2002 at 10:55:55PM +0900, Gavin Sinclair wrote: > > inc = map(array, lambda x: > > print x > > x + 1) > > > > makes me feel weird. Maybe this comes from mixing expression grouping > > by parenthesises, and statement grouping by indentation. > > I believe that the above is not legal Python. "Naturally", a lambda cannot > have any statements, only expressions. And only one expression, at that, "of > course". > > The really weird thing is that map is a function, not a method. Oh well... Well, map and lambda may not be the best way to illustrate what Python is about: they are borrowed from functional languages, and there used to be a significant faction of purists who felt they didn't belong in Python at all. -- Matt Gushee Englewood, Colorado, USA mgushee@havenrock.com http://www.havenrock.com/