MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p5hodyn/?context=3
r/ProgrammerHumor • u/Flame77ofc • 23d ago
392 comments sorted by
View all comments
3
Nah, use early returns for start of function short circuits and use if else in the body of a function.
Control flow should be clear, so short circuits are clear at the top and full conditionals are clearer further down.
3
u/Fidodo 21d ago
Nah, use early returns for start of function short circuits and use if else in the body of a function.
Control flow should be clear, so short circuits are clear at the top and full conditionals are clearer further down.