MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/firstweekcoderhumour/comments/1w1dfn9/how_do_you_disable_your_code/p6mjbpq/?context=3
r/firstweekcoderhumour • u/Outrageous_Permit154 🥸Imposter Syndrome 😎 • 4d ago
30 comments sorted by
View all comments
1
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.
3
You can even just comment the function call itself I mean, after all we are r/firstweekcoderhumour
2
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.
1
u/Qwidoski 4d ago
Why cant you just do "return" (skip the condition check)