4 ms·
> It's a language with a mediocre design, a somewhat frustrating syntax, and a stubborn refusal to commit to such essentials as real closures and lambdas. I ag
by lelele 16y ago
> It's a language with a mediocre design, a somewhat frustrating syntax, and a stubborn refusal to commit to such essentials as real closures and lambdas.
I agree about closures, but why lambdas would be so much better than named functions (already available)? I think named functions help code readability, which is among Python's top goals.
- KirinDave 16y ago> I agree about closures, but why lambdas would be so much better than named functions (already available)? Because sometimes you want to conditionally create functions on the fly. Named functions are a very awkward way to do this. It is unfortunate that we even have to have this argument. Anyone with significant experience in functional programming can tell you how useful unnamed functions are. And it's important to realize they are not necessarily anonymous in local scope. They're anonymous in the global scope. > I think named functions help code readability, which is among Python's top goals. Anonymous Lambdas need not be a detriment to readability. Why do you think it would be otherwise?