Lambda going out of fashion

Alex Martelli aleaxit at yahoo.com
Thu Dec 23 07:47:49 EST 2004


Nick Coghlan <ncoghlan at iinet.net.au> wrote:
   ...
> Perhaps something like:
> 
> accepts_func( (def (a, b, c) to f(a) + o(b) - o(c)) )

Nice, except I think 'as' would be better than 'to'.  'as' should be a
full keyword in 3.0 anyway (rather than a surprisingly-NOT-keyword like
today), and "define something as somethingelse" seems marginally more
readable to me than "define something to somethingelse" anyway.


Alex



More information about the Python-list mailing list