3 ms·
> Plus double-nested (I'm not sure what you'd call it) comrpehensions seem to be backwards. Why are you even doing this? This isn't an acceptable way to write
by iamsohungry 11y ago
> Plus double-nested (I'm not sure what you'd call it) comrpehensions seem to be backwards.
Why are you even doing this? This isn't an acceptable way to write code.
> Plus it's so verbose and horizontal, half the time if you want descriptive names you're gonna write something so verbose it doesn't even make it that much more readable.
If your list comprehension is more than 80 characters wide, it's not because list comprehensions are bad, it's because you did something too complicated. Pull it into a function and name it so people know what the hell you're doing.