Re:Anti-Patterns in Python Programming
by nilved on Wednesday July 09, 2014 @06:37PM
(#8012603)
Even with named functions, Python's use of global functions instead of methods for iterators force you to read the expression from the inside out. I think Lisp languages nailed this with their threading macros, which allow natural left-to-right reading, but Ruby's strategy is better than Python's, too, while maintaining very similar syntax.
It doesn't really make sense for things like `len` and `map` to be global functions in object-oriented languages.
[ Parent
| on HN ]
There are no comments on this comment yet.