A friendlier, sugarier lambda -- a proposal for Ruby-like blocks in python
Alexey Borzenkov
snaury at gmail.com
Sat Oct 14 19:05:01 EDT 2006
brenocon at gmail.com wrote:
> Compared to the Python I know and love, Ruby isn't quite the same.
> However, it has at least one terrific feature: "blocks".
Well, I particularly like how Boo (http://boo.codehaus.org) has done
it:
func(a, b, c) def(p1, p2, p3):
stmts
I was so attached to these "nameless" def-forms that I was even shocked
when I found that this doesn't work in python:
f = def(a, b):
return a*b
Another good feature of Boo, btw.
More information about the Python-list
mailing list