3 ms·
A lot of us don't like Python. It's a language with a mediocre design, a somewhat frustrating syntax, and a stubborn refusal to commit to such essentials as rea
by KirinDave 16y ago
A lot of us don't like Python. 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.
It's basically a language written by a group of people who don't trust you (as a Python user) to be knowledgable and educated. Decisions have been made based on the assumption that you are bad at your job.
Now, everyone seems to comfort themselves with the notion of making it “easy for maintenance”; repeating “I am smart, surely, but not everyone can be as smart as I am.” But this is ultimately a dodge that feeds into the problem endemic to our industry: a disdain for everyone else and everyone else's methods if they differ slightly from our indoctrinated best practices.
- 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?