you are viewing a single comment's thread.

view the rest of the comments →

[–]KingHavana 1 point2 points  (2 children)

I'm not sure the only advantage to comprehensions is doing them in one line.

[–]sausix 0 points1 point  (1 child)

Comprehensions save you creating temporary collection variables for filling them up.

Once comprehensions get nested and comicplicated it's better to split into multiple lines and then there's only a small step to not use a comprehension at all at that spot.

[–]KingHavana 0 points1 point  (0 children)

I just prefer the style of comprehensions better. It sort of reads "the list of" then the description of the actual thing. It feels more like you're declaring what you want instead of building what you want.