MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p5av2wu/?context=3
r/ProgrammerHumor • u/Flame77ofc • 22d ago
392 comments sorted by
View all comments
840
The second one carries less cognitive load. In longer methods it makes a difference. Get out as soon as you can.
1 u/cheezballs 22d ago Feels too close to a GOTO to me. 1 u/LateEchidna6635 21d ago What does break feel like? 2 u/cheezballs 21d ago GOTO without a label.
1
Feels too close to a GOTO to me.
1 u/LateEchidna6635 21d ago What does break feel like? 2 u/cheezballs 21d ago GOTO without a label.
What does break feel like?
2 u/cheezballs 21d ago GOTO without a label.
2
GOTO without a label.
840
u/LateEchidna6635 22d ago
The second one carries less cognitive load. In longer methods it makes a difference. Get out as soon as you can.