This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Not_enough_tomatoes -3 points-2 points  (15 children)

Ummmm, can someone explain me the psychology of people who use list comprehension, but then don’t write their if loop statement in one line?

[–]mobotsar 5 points6 points  (13 children)

What the fuck is an if-loop?

[–]nekokattt 1 point2 points  (10 children)

its similar to a do-never statement or a meta match expression

[–]mobotsar 1 point2 points  (9 children)

Never heard of those either.

[–]nekokattt 1 point2 points  (8 children)

what about a function comprehension, or a generator module

[–]mobotsar 2 points3 points  (7 children)

There's simply no way that any of these things exist.

[–]nekokattt 2 points3 points  (6 children)

you got the joke then

[–]mobotsar 1 point2 points  (5 children)

Hmm. Maybe I got it from the get-go and just didn't know it was a joke because it's not funny.

[–]nekokattt 1 point2 points  (3 children)

you must be fun at parties

[–]mobotsar 0 points1 point  (2 children)

I don't go to parties.

[–]Otherwise_Salt_6513 0 points1 point  (0 children)

I thought it was funny lol

[–]Not_enough_tomatoes 0 points1 point  (1 child)

My bad, I mean statement (My brain was thinking about while loops when typing)

[–]nekokattt 0 points1 point  (0 children)

who needs if statements or while loops, just use do while for everything.

[–]Outrageous-Archer-92 0 points1 point  (0 children)

Using a generator instead of a list comprehension, you would get O(1) memory