3 ms·
On the one hand it’s annoying, on the other it enforces a discipline of thought in the same way that having to name variables does.
by aserafini 7y ago
On the one hand it’s annoying, on the other it enforces a discipline of thought in the same way that having to name variables does.
- baddox 7y agoThat’s an interesting principle, something like “a block of code that is complex enough to be written across multiple lines of code ought to be given a name,” but standard idiomatic Python already violates that principle by featuring multiple lines in the body of a for loop. The fact that the body of a for loop can be multiple lines but the “body” of a lambda cannot is an arbitrary syntax inconsistency.