C#3.0 and lambdas

Michael Ekstrand mekstran at iastate.edu
Mon Sep 19 14:15:54 EDT 2005


On Monday 19 September 2005 08:18, Roel Schroeven wrote:
> def drawline((x1, y1), (x2, y2)):
>     # draw a line from x1, y1 to x2, y2
>     foo(x1, y1)
>     bar(x2, y2)

Yow! I did not know you could even do this.

My vote would be +1 for keeping them in the language... they look far 
too useful to deprecate/remove...

-Michael



More information about the Python-list mailing list