Hacker News new | ask | show | jobs
by abhirag 3078 days ago
Not the OP but I think he was referring to the restrictions python puts on lambda expressions:

- they can only contain a single expression

- they cannot contain statements

2 comments

Python has lambdas that have multiple expressions and statements.

They're called functions.

Python functions aren't anonymous
For precondition checking, shouldn’t that suffice?
Depends on the precondition.