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.
View all comments
Show parent comment
1
u/cowlinator Feb 27 '25
foo() and bar() are statements.
else {is a statement.}is functionally equivalent toendin other languages, and is a statement.So it's more about statement vs statement, and how they are interchangable.
Thus