From late-bound arguments to deferred computation, part 2
From late-bound arguments to deferred computation, part 2
Posted Aug 30, 2022 9:36 UTC (Tue) by milesrout (subscriber, #126894)In reply to: From late-bound arguments to deferred computation, part 2 by jem
Parent article: From late-bound arguments to deferred computation, part 2
Frankly I find that the Zen of Python is cited more by non-Python programmers as an attempted "gotcha!" based on Python violating their interpretations of it. I rarely see it referred to by Python programmers these days. The whole point of it is meant to be that most of the points are followed by a counterpoint that says 'but don't take it too far'.
'Simple is better than complex' is immediately followed by 'complex is better than complicated' and personally I think it would be overcomplicated to need to write range(0, n) everywhere instead of range(n), even if it's a little "complex" that range has a default argument that comes *before* its normal arguments. No Python beginner that I've ever taught has found that particular point difficult or confusing.