This is why adding language features needs to be carefully thought out and explored to great lengths. Sadly C++ never got that memo. Here's hoping Python remains "simple."
I’m not sure I understand the “this is why” part. Python wants to let you override almost everything. It’s a feature and a powerful and occasionally helpful one. It’s also a feature you never ever have to know about or touch.
Agreed - I mostly use Python for small scripts and it makes that use case very easy. I know it has a bunch more features for more niche stuff as well but my throwaway script to download images from a webpage doesn't need pattern matching.
It's like python's metaclasses. You rarely need them but sometimes they really are just the best solution to the problem. Those times, you're really glad they're available.
Waterluvian|3 years ago
jesushax|3 years ago
There's more than one way to do it *vs* there should be one, and preferably only one, obvious way to do it
jamesfinlayson|3 years ago
Blackthorn|3 years ago
kazinator|3 years ago
The "never have to know or touch" argument applies only to the lone hacker working on a completely new project with no inherited legacy code.
pansa2|3 years ago
I’m baffled as to how it retains its reputation of being a simple language.
shepherdjerred|3 years ago
defen|3 years ago
petters|3 years ago
pizza|3 years ago
pjmlp|3 years ago
Either you get Scheme, or languages with features.
Even C isnt' as "simple" as people take it to be.