News for hackers. Stuff that matters.
Re:Examples of Incorrect Abstractions in Other Languages by saagarjha on Tuesday May 19, 2020 @08:16PM (#23241930)
> 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.

Re:Examples of Incorrect Abstractions in Other Languages by canjobear on Wednesday May 20, 2020 @01:27AM (#23243557)
What other languages are you comparing against? I came to Python from Perl and the one-way-to-do-it-ness was noticeable and refreshing.
Re:Examples of Incorrect Abstractions in Other Languages by saagarjha on Wednesday May 20, 2020 @10:12PM (#23254207)
I 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…