necessarily true? when working with server-side code of course.
this code that i'm looking at has like 2 - 4 return statements per function (some have more, this code is terrible). i was taught that we should always avoid multiple return statements by my college professor, but is this necessarily true? his reasoning was that it's hard to keep track... i don't remember any other explanations.
but if you agree/disagree what are your reasons?
this code that i'm looking at has like 2 - 4 return statements per function (some have more, this code is terrible). i was taught that we should always avoid multiple return statements by my college professor, but is this necessarily true? his reasoning was that it's hard to keep track... i don't remember any other explanations.
but if you agree/disagree what are your reasons?