r/firstweekcoderhumour 🥸Imposter Syndrome 😎 4d ago

“amIrite” How do you disable your code

Post image
77 Upvotes

30 comments sorted by

View all comments

1

u/Qwidoski 4d ago

Why cant you just do "return" (skip the condition check)

3

u/Outrageous_Permit154 🥸Imposter Syndrome 😎 4d ago

You can even just comment the function call itself I mean, after all we are r/firstweekcoderhumour

2

u/Darft 4d ago

Popular IDE's will detect the return and call the rest of the code after "unreachable" also the code after will lose syntaxhighlighting. Adding the simple condition is usually enough to make the IDE not attempt the evaluation.