|
|
|
|
|
by FridgeSeal
654 days ago
|
|
Pythons list comprehensions are sort of fun, but occupy that space because the language designers throttled the alternatives pretty hard. I used to write a lot of Python, I now write a lot of Rust, and the Rust iterator chains feel inordinately more powerful, and list comprehensions feel semantically backwards to me now: what you’re doing, what you’re doing it to, and whether to do it conditionally are all out of order. To me, Python feels “expressive” because you can “do stuff to make it work” not because of any inherent design that lets you properly express what you’re trying to do. |
|