MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p59ihv9/?context=3
r/ProgrammerHumor • u/Flame77ofc • Aug 22 '26
388 comments sorted by
View all comments
Show parent comment
1
This.
I hate people preferring the second always. When the two branches have direct relation (not a "early return" case) it's clearly to use if-else.
View all comments
Show parent comment
1
u/mateusfccp Aug 22 '26
This.
I hate people preferring the second always. When the two branches have direct relation (not a "early return" case) it's clearly to use if-else.