My colleagues' code look like that too. I hate it really. I love an early return coding style. In every code review we discuss about that topic. They always try to have just one return statement in a function.
Sorry you have to work with... stubborn and wrong coders. It's a good idea to have one return statement in general, but in the case of reducing nested mumbo jumbo, multiple returns is the least of your troubles.
View all comments
Show parent comment
1
u/tedbradly May 02 '23
Sorry you have to work with... stubborn and wrong coders. It's a good idea to have one return statement in general, but in the case of reducing nested mumbo jumbo, multiple returns is the least of your troubles.