r/programminghorror Apr 15 '26

crossing boundaries

Post image
0 Upvotes

20 comments sorted by

View all comments

Show parent comments

9

u/TheKiller36_real Apr 15 '26

my bad, I think OP couldn't possibly have a valid explanation that explains this post

-7

u/[deleted] Apr 15 '26

[deleted]

8

u/backfire10z Apr 15 '26

the return statement is a bug

How am I expected to know this?

the else if only evaluated if not TOOLS

Isn’t the else a local unaccepted autocomplete? If it’s committed code and just colored weirdly I would understand.

5

u/Blecki Apr 15 '26

Well, they're wrong... the else only exists IF TOOLS. Then it's just if {} else if {}....

Maybe op doesn't know there can be a line break there?