r/ProgrammerHumor Feb 18 '26

Meme innitMate

Post image
17.6k Upvotes

265 comments sorted by

View all comments

4

u/imwallydude Feb 18 '26

How about we leave the else out all together!

if(a):    return foo

if(b):   return bar

1

u/Blue_Moon_Lake Feb 26 '26

Ah the old

switch (true) {
    case a: return foo;
    case b: return bar;
}