4 ms·
But why? The only reason is that error messages are awful and intermediate values can't be named. There is in principle no reason why list comprehension need to
by gpderetta 4y ago
But why? The only reason is that error messages are awful and intermediate values can't be named. There is in principle no reason why list comprehension need to be worse than straight line for loops. The deciding factor to chose betwee the two should be whether I'm writing something for side effects as opposed to for its value.
- mcronce 4y agoYou just listed two very good reasons: Intermediate values can't be named, and error messages are awful.