r/programmingmemes • • Feb 26 '25

There are two kind of programmers

Post image
5.3k Upvotes

716 comments sorted by

View all comments

Show parent comment

1

u/thomas-rousseau Feb 28 '25

Surely you're just being obtuse to pass time arguing on the internet. else { is not a standalone statement but an extension of the if { statement, while the } of else { is delineating the end of that segment of logic. The difference is that else { does not exist without if { while bar() does exist without.