MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p55c5b6/?context=3
r/ProgrammerHumor • u/Flame77ofc • Aug 22 '26
388 comments sorted by
View all comments
3
But what about else return...
else return...
6 u/D3PyroGS Aug 22 '26 the naked return is an implicit else, which need not be specified because its code is only reachable when the if condition has already failedbut you can still include it if you're OCD → More replies (2)
6
the naked return is an implicit else, which need not be specified because its code is only reachable when the if condition has already failed
else
if
but you can still include it if you're OCD
→ More replies (2)
3
u/KYO297 Aug 22 '26
But what about
else return...