why doesn't python have anonymous functions (not just lambdas which can only be expressions)?
def foo(x):
def lambda():
print x
lambda;bar(callback=lambda);baz(42,lambda)
def lambda():
print x * x
lambda;bar(callback=lambda);baz(42,lambda)
It'd stop this silly complaint. I just end up using 'def lambduh'Slightly annoying that you need to define the function on the line before, can't inline it, but not nearly as bad as people make it out to be.
It's considered opaque.
Personally, I like to fiddle with Clojure in my free time.