Comment

Comment by jrockway

The use is the same, it's just that the definition can now be more than one line of code. It's pretty arbitrary to say "you can have one-line anonymous functions, but for two lines, the function must have a name".

No other language does that, because it makes very little sense. This proposal will make Python behave more like every other programming language that supports anonymous functions.

parent jrockway 17 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton