4 ms·
List comprehensions in Python allow you to avoid having to add another level of indentation. If the feature did not exist, a lot of Python code would be one mor
by smnrchrds 5y ago
List comprehensions in Python allow you to avoid having to add another level of indentation. If the feature did not exist, a lot of Python code would be one more level deep. Language features definitely have an effect on the number of indentation levels you need. Map and reduce reduce the number, Node-style callbacks increase it, etc.
Although I suppose a Linux kernel developer would consider having to write Node JS code as 'being screwed'.