2 ms·
> Because Python's design philosophy is that, for a given operation exposed by the language, there should ideally be a single clear way of doing it This philos
by saagarjha 7y ago
> Because Python's design philosophy is that, for a given operation exposed by the language, there should ideally be a single clear way of doing it
This philosophy falls apart immediately once you start using Python though. I have yet to see it actually be used for anything but not implementing features that someone wants.
- canjobear 7y agoWhat other languages are you comparing against? I came to Python from Perl and the one-way-to-do-it-ness was noticeable and refreshing.
- saagarjha 7y agoI don't think many other languages make that claim, and I think it's generally an anti-goal in diverse multiparadigm languages. I don't even understand why Python tries to have it: I can think of three fairly idiomatic ways to sum a list of numbers right off the top of my head; it's immediately clear that such a proposition is not feasible for the language. The only time I have heard it come up is when there is an unsaid accusation that the language is getting "to complex" and someone wants to block the addition of a feature…