>>8
What is that supposed to return if not x and not z? Or is y supposed to be a statement?
Anyway, you can pass functions of course, you just can't pass
def itself, which wouldn't make much sense in Python anyway, and alternatives like (disregarding the
= statement):
f = function((x, y),
...
)
Requires its own set of 'nigger rigs', like the ability to give code as arguments.
Which differences between lambda and def are you talking about? Lambdas have limitations, but they're hardly arbitrary. I'm not sure what and-or and if-else hacks you are referring to.
How would you have things like
if,
def and
lambda look?